Load our configuration before setting defaults, so local_unbound_workdir
actually has an effect. PR: 204931 Submitted by: Eugene Grosbein <eugen@grosbein.net> MFC after: 1 week
This commit is contained in:
parent
9d4de283d5
commit
a677ee8beb
@ -24,6 +24,8 @@ configtest_cmd="local_unbound_configtest"
|
||||
setup_cmd="local_unbound_setup"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${local_unbound_workdir:=/var/unbound}
|
||||
: ${local_unbound_config:=${local_unbound_workdir}/unbound.conf}
|
||||
: ${local_unbound_flags:="-c ${local_unbound_config}"}
|
||||
@ -32,8 +34,6 @@ pidfile="/var/run/${name}.pid"
|
||||
: ${local_unbound_anchor:=${local_unbound_workdir}/root.key}
|
||||
: ${local_unbound_forwarders:=}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
do_as_unbound()
|
||||
{
|
||||
echo "$@" | su -m unbound
|
||||
|
Loading…
Reference in New Issue
Block a user