From: Stefan Schantl Date: Tue, 10 Dec 2019 13:50:35 +0000 (+0100) Subject: update-location-database: Only reload firewall after successfull update. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a240b7144eb3ce5d4bda65ebb9a7d1a95f82055;p=people%2Fstevee%2Fipfire-2.x.git update-location-database: Only reload firewall after successfull update. Signed-off-by: Stefan Schantl --- 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