1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #3574: Bug in the remote directory creation

This commit is contained in:
Jaime Melis 2015-02-23 12:53:38 +01:00
parent fa1eeeadcd
commit 41f5099814

View File

@ -55,8 +55,8 @@ BRIDGE_LIST="${XPATH_ELEMENTS[i++]}"
# ------------ Compute datastore usage -------------
MONITOR_SCRIPT=$(cat <<EOF
if [ ! -d \$BASE_PATH ]; then
mkdir -p \$BASE_PATH
if [ ! -d $BASE_PATH ]; then
mkdir -p $BASE_PATH
fi
USED_MB=\$(df -B1M -P $BASE_PATH 2>/dev/null | tail -n 1 | awk '{print \$3}')