mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
feature #2097: Remove more VMware traces from shared TM
This commit is contained in:
1 parent
b83c075c2a
commit
72bd526fcc
2 files changed
+2
-14
No files matched your search
@@ -59,13 +59,7 @@ CPSCRIPT=$(cat <<EOF
|
||||
SRC_READLN=\$($READLINK -f $SRC_PATH)
|
||||
DST_READLN=\$($READLINK -f $DST_PATH)
|
||||
|
||||
if [ -d $SRC_PATH ] ; then
|
||||
if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
|
||||
echo "Not moving files to image repo, they are the same"
|
||||
else
|
||||
cp -rf $SRC_PATH/* $DST_PATH
|
||||
fi
|
||||
elif [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
|
||||
if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
|
||||
echo "Not copying files to image repo, they are the same"
|
||||
else
|
||||
cp -f $SRC_PATH $DST_PATH
|
||||
|
||||
@@ -59,13 +59,7 @@ MVSCRIPT=$(cat <<EOF
|
||||
SRC_READLN=\$($READLINK -f $SRC_PATH)
|
||||
DST_READLN=\$($READLINK -f $DST_PATH)
|
||||
|
||||
if [ -d $SRC_PATH ] ; then
|
||||
if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
|
||||
echo "Not moving files to image repo, they are the same"
|
||||
else
|
||||
mv -f $SRC_PATH/* $DST_PATH
|
||||
fi
|
||||
elif [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
|
||||
if [ \( -L $SRC_PATH \) -a \( "\$SRC_READLN" = "\$DST_READLN" \) ] ; then
|
||||
echo "Not moving files to image repo, they are the same"
|
||||
else
|
||||
mv -f $SRC_PATH $DST_PATH
|
||||
|
||||
Reference in new issue
Block a user