mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-12 08:58:17 +03:00
feature #2097: Improve CD management for MVDS
This commit is contained in:
parent
27e986fbcb
commit
1bd4cd0c73
@ -68,18 +68,21 @@ MVSCRIPT=$(cat <<EOF
|
||||
SRC_DISK_LN=\$($READLINK -f $SRC_DISK)
|
||||
DST_DISK_LN=\$($READLINK -f $DST_DISK)
|
||||
|
||||
if [ \( -L $SRC_DISK \) -a \( "\$SRC_DISK_LN" = "\$DST_DISK_LN" \) ] ; then
|
||||
if [ \( -L $SRC_DISK \) -a \( "\$SRC_DISK_LN" = "\$DST_DISK_LN" \) ]; then
|
||||
echo "Not moving files to image repo, they are the same"
|
||||
elif [ -L "$SRC_PATH.iso" ]; then
|
||||
echo "Not moving the file it is a CDROM"
|
||||
else
|
||||
$VMKFSTOOLS -U $DST_DISK
|
||||
$VMKFSTOOLS -i $SRC_DISK -d thin $DST_DISK
|
||||
|
||||
if [ -d $DST_PATH ]; then
|
||||
chmod 0770 $DST_PATH
|
||||
else
|
||||
chmod 0660 $DST_PATH
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d $DST_PATH ]; then
|
||||
chmod 0770 $DST_PATH
|
||||
else
|
||||
chmod 0660 $DST_PATH
|
||||
fi
|
||||
EOF
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user