1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

dns/coredns: change working directory to load extra config files

PR:		275205
This commit is contained in:
yjqg6666 2023-12-17 18:31:20 -08:00 committed by Yuri Victorovich
parent 02d7506df8
commit 8e5b0e862a
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= coredns
DISTVERSIONPREFIX= v
DISTVERSION= 1.11.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= dns
MAINTAINER= yuri@FreeBSD.org

View File

@ -37,8 +37,8 @@ command_args="-S -m 3 -s "info" -l "daemon" -p ${pidfile} /usr/bin/env ${procnam
coredns_precmd()
{
/usr/bin/install -d -m 0755 \
%%PREFIX%%/etc/coredns
/usr/bin/install -d -m 0755 %%PREFIX%%/etc/coredns && \
cfg_dir=$(dirname "${coredns_config}") && cd "$cfg_dir"
}
run_rc_command "$1"