[2/4] xt_geoip_update: Use /var/tmp for temporary data

Message ID 20191014144756.7674-2-daniel.weismueller@ipfire.org
State Accepted
Commit 3cd8d550109b03d6187f73463a118f74664242a3
Headers
Series [1/4] xt_geoip_update: Perform cleanup after successful operation |

Commit Message

Daniel Weismueller Oct. 14, 2019, 2:47 p.m. UTC
  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@ipfire.org>
---
 src/scripts/xt_geoip_update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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