mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 07:53:01 +02:00
update-location-database: Only reload firewall after successfull update.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user