]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
update-location-database: Export database to ipset compatible format now.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 11 Feb 2022 20:31:19 +0000 (21:31 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 11 Feb 2022 20:31:19 +0000 (21:31 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/scripts/update-location-database

index 06b22d101cafbb59c23c2c0310d35905b280d9dd..d41a0a947be0a028f39c51d0a126cf80746ba516 100644 (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