unbound: update savesearch after reload configfiles
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 1 Mar 2020 18:41:13 +0000 (19:41 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 1 Mar 2020 19:46:24 +0000 (19:46 +0000)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/unbound

index b6b57f1..507f589 100644 (file)
@@ -592,13 +592,13 @@ case "$1" in
                write_forward_conf
                write_hosts_conf
 
+               # Call unbound-control and perform the reload
+               /usr/sbin/unbound-control -q reload
+
                # Update Safe Search rules if the system is online.
                if [ -e "/var/ipfire/red/active" ]; then
                        update_safe_search
                fi
-
-               # Call unbound-control and perform the reload
-               /usr/sbin/unbound-control -q reload
                ;;
 
        status)