]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
xt_geoip_update: Do not create temporary directories again
authorDaniel Weismüller <daniel.weismueller@ipfire.org>
Mon, 14 Oct 2019 14:47:55 +0000 (16:47 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 14 Oct 2019 17:45:27 +0000 (17:45 +0000)
These already exist

Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/scripts/xt_geoip_update

index f633229fb34155daf388327ca9772fe1fe7eff8c..6c0b70db02c106e80a2f41d8ff50472b865841ea 100644 (file)
@@ -35,9 +35,6 @@ eval $(/usr/local/bin/readhash /var/ipfire/proxy/settings)
 function download() {
        echo "Downloading latest GeoIP ruleset..."
 
-       # Create temporary directory.
-       mkdir -pv $TMP_PATH
-
        # Proxy settings.
        # Check if a proxy should be used.
        if [[ $UPSTREAM_PROXY ]]; then
@@ -84,9 +81,6 @@ function install() {
 }
 
 function build_legacy() {
-       # Create temporary directory.
-       mkdir -pv $TMP_PATH
-       
        echo "Convert database to legacy GeoIP.dat ..."
        cat $DB_PATH/GeoLite2-Country-Blocks-IPv4.csv | \
            $DB1_PATH/bin/geolite2-to-legacy-csv.sh $DB1_PATH/bin/countryInfo.txt > \