mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue