mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-29 18:50:08 +03:00
M #-: clone.replia: fix when dir does not exists (#2686)
This commit is contained in:
parent
53c575029c
commit
1fa2c5c8fe
@ -180,6 +180,13 @@ EOF
|
||||
else
|
||||
# when recovery running create only ". -> disk.X.snap" symlink
|
||||
MAKE_SNAP_CMD="cd $DST_PATH.snap; ln -s . $DST_FILE.snap"
|
||||
MAKE_SNAP_CMD=$(cat <<EOF
|
||||
if [ -d $DST_PATH.snap ]; then
|
||||
cd $DST_PATH.snap
|
||||
ln -s . $DST_FILE.snap ||:
|
||||
fi
|
||||
EOF
|
||||
)
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user