From 1eee696bb4402370db0f65237cc1e2148815ee56 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 9 Dec 2019 14:59:26 +0100 Subject: [PATCH] red.up: Download / Update location database. Signed-off-by: Stefan Schantl --- .../networking/red.up/99-geoip-database | 20 ------------------- .../networking/red.up/99-location-database | 6 ++++++ 2 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 src/initscripts/networking/red.up/99-geoip-database create mode 100644 src/initscripts/networking/red.up/99-location-database diff --git a/src/initscripts/networking/red.up/99-geoip-database b/src/initscripts/networking/red.up/99-geoip-database deleted file mode 100644 index 9b024a8d0c..0000000000 --- a/src/initscripts/networking/red.up/99-geoip-database +++ /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 index 0000000000..29f2446796 --- /dev/null +++ b/src/initscripts/networking/red.up/99-location-database @@ -0,0 +1,6 @@ +#!/bin/bash + +# Download / Check for updates of the location database. +/usr/local/bin/update-location-database + +exit 0 -- 2.39.5