From: "Daniel Weismüller" <daniel.weismueller@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 2/4] xt_geoip_update: Use /var/tmp for temporary data
Date: Mon, 14 Oct 2019 16:47:54 +0200 [thread overview]
Message-ID: <20191014144756.7674-2-daniel.weismueller@ipfire.org> (raw)
In-Reply-To: <20191014144756.7674-1-daniel.weismueller@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
Since we have some systems that are restricted to only 2GB of
space on /, we need to move this to where we have enough space.
Signed-off-by: Daniel Weismüller <daniel.weismueller(a)ipfire.org>
---
src/scripts/xt_geoip_update | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/scripts/xt_geoip_update b/src/scripts/xt_geoip_update
index f3ba8a52e..f633229fb 100644
--- a/src/scripts/xt_geoip_update
+++ b/src/scripts/xt_geoip_update
@@ -19,7 +19,7 @@
# #
###############################################################################
-TMP_PATH=$(mktemp -d)
+TMP_PATH=$(mktemp -dp /var/tmp)
TMP_FILE=$(mktemp -p $TMP_PATH)
SCRIPT_PATH=/usr/local/bin
--
2.12.2
next prev 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 ` Daniel Weismüller [this message]
2019-10-14 14:47 ` [PATCH 3/4] xt_geoip_update: Do not create temporary directories again Daniel Weismüller
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-2-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