From 9a240b7144eb3ce5d4bda65ebb9a7d1a95f82055 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 10 Dec 2019 14:50:35 +0100 Subject: [PATCH] update-location-database: Only reload firewall after successfull update. Signed-off-by: Stefan Schantl --- src/scripts/update-location-database | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/scripts/update-location-database b/src/scripts/update-location-database index ebed5a095b..a329c4cd46 100644 --- a/src/scripts/update-location-database +++ b/src/scripts/update-location-database @@ -39,7 +39,8 @@ if [[ $UPSTREAM_PROXY ]]; then fi # Get the latest location database from server. -/usr/bin/location-downloader update +if /usr/bin/location-downloader update; then -# Call initscript to reload the firewall. -/etc/init.d/firewall reload + # Call initscript to reload the firewall. + /etc/init.d/firewall reload +fi -- 2.39.5