mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
unbound: replace obsolete test expressions
Expressions '-o', '-a', and '\( \)' within test or '[ ]' are obsolete. POSIX allows few arguments to test, so long expressions are not portable. '[ p -a q ]' can be replaced with '[ p ] && [ q ]' instead. Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
This commit is contained in:
committed by
Yousong Zhou
parent
85bc7bc4f3
commit
f1d1530f48
@@ -61,7 +61,7 @@ service_triggers() {
|
||||
. /usr/lib/unbound/defaults.sh
|
||||
|
||||
|
||||
if [ ! -f "$UB_TOTAL_CONF" -o -n "$UB_BOOT" ] ; then
|
||||
if [ ! -f "$UB_TOTAL_CONF" ] || [ -n "$UB_BOOT" ] ; then
|
||||
# Unbound is can be a bit heavy, so wait some on first start but any
|
||||
# interface coming up affects the trigger and delay so guarantee start
|
||||
procd_add_raw_trigger "interface.*.up" 3000 /etc/init.d/unbound restart
|
||||
|
||||
Reference in New Issue
Block a user