summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-01-17 13:06:53 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-04-17 14:46:09 -0400
commitd6e88e1a3fcddb4ef1717174e88d9a9f0a386357 (patch)
tree594ed2f6a293319ecc0bf27e2db5a1c10a575053
parent6262754028e750dbbacd1d68618bf5553d78f3cd (diff)
Export TMPDIR, and use mktemp -t instead of making it part of the template
-rw-r--r--config2
-rw-r--r--db-functions2
2 files changed, 2 insertions, 2 deletions
diff --git a/config b/config
index 6048209..b781555 100644
--- a/config
+++ b/config
@@ -23,7 +23,7 @@ LOCK_DELAY=10
LOCK_TIMEOUT=300
STAGING="$HOME/staging"
-TMPDIR="/var/tmp"
+export TMPDIR="/var/tmp"
ARCHES=(i686 x86_64)
DBEXT=".db.tar.gz"
FILESEXT=".files.tar.gz"
diff --git a/db-functions b/db-functions
index f00ed55..5fe86b6 100644
--- a/db-functions
+++ b/db-functions
@@ -25,7 +25,7 @@ mv_acl() {
}
# set up general environment
-WORKDIR=$(mktemp -d "${TMPDIR}/${0##*/}.XXXXXXXXXX")
+WORKDIR=$(mktemp -dt "${0##*/}.XXXXXXXXXX")
if [ -n "${SVNUSER}" ]; then
setfacl -m u:"${SVNUSER}":rwx "${WORKDIR}"
setfacl -m d:u:"${USER}":rwx "${WORKDIR}"