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

bug #382: ISO tmp path for context does not work in system wide installations

This commit is contained in:
Jaime Melis 2010-11-08 19:35:42 +01:00
parent af3ed5d9d8
commit 5f6b326c52
2 changed files with 10 additions and 2 deletions

View File

@ -42,7 +42,11 @@ DST_PATH=`arg_path $DST`
DST_DIR=`dirname $DST_PATH`
DST_FILE=`basename $DST_PATH`
DST_HASH=`echo -n $DST | $MD5SUM | $AWK '{print $1}'`
TMP_DIR="$ONE_LOCATION/var/$DST_HASH"
if [ -z "$ONE_LOCATION" ]; then
TMP_DIR="/var/lib/one/$DST_HASH"
else
TMP_DIR="$ONE_LOCATION/var/$DST_HASH"
fi
ISO_DIR="$TMP_DIR/isofiles"

View File

@ -42,7 +42,11 @@ DST_PATH=`arg_path $DST`
DST_DIR=`dirname $DST_PATH`
DST_FILE=`basename $DST_PATH`
DST_HASH=`echo -n $DST | $MD5SUM | $AWK '{print $1}'`
TMP_DIR="$ONE_LOCATION/var/$DST_HASH"
if [ -z "$ONE_LOCATION" ]; then
TMP_DIR="/var/lib/one/$DST_HASH"
else
TMP_DIR="$ONE_LOCATION/var/$DST_HASH"
fi
ISO_DIR="$TMP_DIR/isofiles"