]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
red.up: Download / Update location database.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 9 Dec 2019 13:59:26 +0000 (14:59 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 9 Dec 2019 13:59:26 +0000 (14:59 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/initscripts/networking/red.up/99-geoip-database [deleted file]
src/initscripts/networking/red.up/99-location-database [new file with mode: 0644]

diff --git a/src/initscripts/networking/red.up/99-geoip-database b/src/initscripts/networking/red.up/99-geoip-database
deleted file mode 100644 (file)
index 9b024a8..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-# Get the GeoIP database if no one exists yet
-
-database_exists() {
-       local file
-       for file in /usr/share/xt_geoip/*.iv4; do
-               [ -e "${file}" ] && return 0
-       done
-
-       # Does not exist
-       return 1
-}
-
-# Download ruleset if none has been found.
-if ! database_exists; then
-       /usr/local/bin/xt_geoip_update >/dev/null 2>&1 &
-fi
-
-exit 0
diff --git a/src/initscripts/networking/red.up/99-location-database b/src/initscripts/networking/red.up/99-location-database
new file mode 100644 (file)
index 0000000..29f2446
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# Download / Check for updates of the location database.
+/usr/local/bin/update-location-database
+
+exit 0