update-location-database: Automatically export database after update.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2020-06-10 21:24:58 +02:00
parent 2da9d3f247
commit 36331a6a9c

View File

@@ -39,8 +39,11 @@ if [[ $UPSTREAM_PROXY ]]; then
fi
# Get the latest location database from server.
if /usr/bin/location-downloader update; then
if /usr/bin/location update; then
# Call location and export all countries in xt_geoip compatible format.
if /usr/bin/location export --directory=/usr/share/xt_geoip --family=ipv4 --format=xt_geoip; then
# Call initscript to reload the firewall.
/etc/init.d/firewall reload
# Call initscript to reload the firewall.
/etc/init.d/firewall reload
fi
fi