1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

Bug #1911: Fix bugs in vmfs ln script for TM

This commit is contained in:
Tino Vazquez 2013-04-24 15:17:03 +02:00
parent d3e2c0a615
commit 1a7eedf3d3

View File

@ -62,8 +62,8 @@ if [ "$USE_SSH" == "yes" ]; then
# Let's check if it is a CDROM # Let's check if it is a CDROM
DISK_ID=$(echo "$DST_PATH" | $AWK -F. '{print $NF}') DISK_ID=$(echo "$DST_PATH" | $AWK -F. '{print $NF}')
XPATH="${DRIVER_PATH}/../../datastore/xpath.rb --stdin"
DRIVER_PATH=$(dirname $0) DRIVER_PATH=$(dirname $0)
XPATH="${DRIVER_PATH}/../../datastore/xpath.rb --stdin"
unset i XPATH_ELEMENTS unset i XPATH_ELEMENTS
@ -74,7 +74,7 @@ if [ "$USE_SSH" == "yes" ]; then
DISK_TYPE="${XPATH_ELEMENTS[0]}" DISK_TYPE="${XPATH_ELEMENTS[0]}"
if [ "$DISK_TYPE" != "CDROM"]; then if [ "$DISK_TYPE" != "CDROM" ]; then
ssh_make_path $DST_HOST $DST_PATH ssh_make_path $DST_HOST $DST_PATH
log "Link all files in $SRC_PATH to $DST_PATH" log "Link all files in $SRC_PATH to $DST_PATH"