update-location-database: Only reload firewall after successfull update.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-12-10 14:50:35 +01:00
parent 693b8513df
commit 9a240b7144

View 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