public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Daniel Weismüller" <daniel.weismueller@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 3/4] xt_geoip_update: Do not create temporary directories again
Date: Mon, 14 Oct 2019 16:47:55 +0200	[thread overview]
Message-ID: <20191014144756.7674-3-daniel.weismueller@ipfire.org> (raw)
In-Reply-To: <20191014144756.7674-1-daniel.weismueller@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

These already exist

Signed-off-by: Daniel Weismüller <daniel.weismueller(a)ipfire.org>
---
 src/scripts/xt_geoip_update | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/scripts/xt_geoip_update b/src/scripts/xt_geoip_update
index f633229fb..6c0b70db0 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 > \
-- 
2.12.2


  parent reply	other threads:[~2019-10-14 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-14 14:47 [PATCH 1/4] xt_geoip_update: Perform cleanup after successful operation Daniel Weismüller
2019-10-14 14:47 ` [PATCH 2/4] xt_geoip_update: Use /var/tmp for temporary data Daniel Weismüller
2019-10-14 14:47 ` Daniel Weismüller [this message]
2019-10-14 14:47 ` [PATCH 4/4] xt_geoip_update: Always call the cleanup function when some step fails Daniel Weismüller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191014144756.7674-3-daniel.weismueller@ipfire.org \
    --to=daniel.weismueller@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox