update-location-database: Export database to ipset compatible format now.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-02-14 19:42:52 +01:00
committed by Peter Müller
parent 07106467b8
commit edad13b46b

View File

@@ -42,8 +42,8 @@ fi
# Get the latest location database from server.
if /usr/bin/location update --cron=$UPDATE_INTERVAL; 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 location and export all countries in an ipset compatible format.
if /usr/bin/location export --directory=/var/lib/location/ipset --family=ipv4 --format=ipset; then
# Call initscript to reload the firewall.
/etc/init.d/firewall reload