1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Do not create TMPDIR if it is not defined

This commit is contained in:
Daniel Molina 2012-05-09 17:32:21 +02:00
parent 0d5d5e2e3a
commit bf6862b4c2
3 changed files with 15 additions and 6 deletions

View File

@ -35,8 +35,11 @@ fi
setup()
{
TMPDIR=$(grep ^:tmpdir: $ECONE_ETC|awk '{print $2}')
test -n "$TMPDIR" && export TMPDIR
mkdir -p $TMPDIR
if [ -n "$TMPDIR" ]; then
export TMPDIR
mkdir -p $TMPDIR
fi
if [ -f $ECONE_LOCK_FILE ]; then
if [ -f $ECONE_PID ]; then

View File

@ -35,8 +35,11 @@ fi
setup()
{
TMPDIR=$(grep ^:tmpdir: $OCCI_ETC|awk '{print $2}')
test -n "$TMPDIR" && export TMPDIR
mkdir -p $TMPDIR
if [ -n "$TMPDIR" ]; then
export TMPDIR
mkdir -p $TMPDIR
fi
if [ -f $OCCI_LOCK_FILE ]; then
if [ -f $OCCI_PID ]; then

View File

@ -36,8 +36,11 @@ fi
setup()
{
TMPDIR=$(grep ^:tmpdir: $SUNSTONE_CONF|awk '{print $2}')
test -n "$TMPDIR" && export TMPDIR
mkdir -p $TMPDIR
if [ -n "$TMPDIR" ]; then
export TMPDIR
mkdir -p $TMPDIR
fi
if [ -f $SUNSTONE_LOCK_FILE ]; then
if [ -f $SUNSTONE_PID ]; then