cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [33/50] git commit: updated refs/heads/master to 1290e10
Date Mon, 22 Sep 2014 19:44:32 GMT
CLOUDSTACK-7143: make script compatible with linux mktemp


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/41ddb6b7
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/41ddb6b7
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/41ddb6b7

Branch: refs/heads/master
Commit: 41ddb6b768188676dab8102063088a1d67414e75
Parents: 631a3c8
Author: Leo Simons <lsimons@schubergphilis.com>
Authored: Tue Jul 22 13:49:52 2014 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Sep 22 21:38:15 2014 +0200

----------------------------------------------------------------------
 tools/appliance/shar_cloud_scripts.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/41ddb6b7/tools/appliance/shar_cloud_scripts.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/shar_cloud_scripts.sh b/tools/appliance/shar_cloud_scripts.sh
index 33268e8..5504d16 100755
--- a/tools/appliance/shar_cloud_scripts.sh
+++ b/tools/appliance/shar_cloud_scripts.sh
@@ -30,7 +30,9 @@ cd ${SCRIPT_DIR}/../..
 CLOUDSTACK_DIR=${PWD}
 cd ${CURR_DIR}
 # ensure we are running in isolation
-TEMP_DIR=`mktemp -d -t shar_cloud`
+TMPDIR=${TMPDIR:-/tmp}
+TMPDIR=${TMPDIR%/}
+TEMP_DIR=`mktemp -d ${TMPDIR}/shar_cloud.XXXXXXXX`
 
 cd ${TEMP_DIR}
 mkdir cloud_scripts


Mime
View raw message