From: Daniel Weismüller Date: Mon, 14 Oct 2019 14:47:55 +0000 (+0200) Subject: xt_geoip_update: Do not create temporary directories again X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=7b2d933055e8a86eba8398a474fdf9badc2295f0 xt_geoip_update: Do not create temporary directories again These already exist Signed-off-by: Daniel Weismüller Signed-off-by: Arne Fitzenreiter --- diff --git a/src/scripts/xt_geoip_update b/src/scripts/xt_geoip_update index f633229fb3..6c0b70db02 100644 --- a/src/scripts/xt_geoip_update +++ b/src/scripts/xt_geoip_update @@ -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 > \