1
0
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:
Jan Orel 2023-07-24 17:53:15 +02:00 committed by GitHub
parent 53c575029c
commit 1fa2c5c8fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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