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:
parent
0d5d5e2e3a
commit
bf6862b4c2
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user