]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
update-location-database: Only reload firewall after successfull update.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 10 Dec 2019 13:50:35 +0000 (14:50 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Tue, 10 Dec 2019 13:50:35 +0000 (14:50 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/scripts/update-location-database

index ebed5a095bd6b609f9f61f3d24ab075afda86d73..a329c4cd46bdafe0b63232ae21cfb57e8f7bac5c 100644 (file)
@@ -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