]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
update-location-database: Export as list into new directory
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 18:57:29 +0000 (20:57 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 14 Apr 2023 18:57:29 +0000 (20:57 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/scripts/update-location-database

index 24970dc084e30ee032332430f1f39c84acb6b947..bd2a4deb73f5e6bfb116346d1f45628015b228be 100644 (file)
@@ -43,7 +43,7 @@ fi
 # Get the latest location database from server.
 if /usr/bin/location update --cron=$UPDATE_INTERVAL; 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
+       if /usr/bin/location export --directory=/var/lib/location/export --family=ipv4 --format=list; then
 
                # Call initscript to reload the firewall.
                /etc/init.d/firewall reload