From mboxrd@z Thu Jan  1 00:00:00 1970
From: Arne Fitzenreiter <arne_f@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 1/4] unbound: update savesearch after reload configfiles
Date: Sun, 01 Mar 2020 19:41:13 +0100
Message-ID: <20200301184116.15686-1-arne_f@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6432648067889252630=="
List-Id: <development.lists.ipfire.org>

--===============6432648067889252630==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
---
 src/initscripts/system/unbound | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound
index b6b57f1c1..507f589ca 100644
--- a/src/initscripts/system/unbound
+++ b/src/initscripts/system/unbound
@@ -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)
-- 
2.17.1


--===============6432648067889252630==--