M #-: Fix VM recreate from recovery snap (#875)

This commit is contained in:
Jan Orel authored and GitHub committed 2021-02-24 19:27:02 +01:00
1 parent 244ab4fb15
commit 5d1318cd95
1 file changed
+3 -1
+3 -1
View File
@@ -143,10 +143,12 @@ if [ "$REPLICA_HOST" = "$DST_HOST" ]; then
create_base "$SRC_PATH" "$DST_PATH"
else
cd $SRC_DIR
cp $SRC_FILE $DST_PATH
cp -P $SRC_FILE $DST_PATH
if [ -d $SRC_PATH.snap ]; then
cp -r $SRC_PATH.snap $DST_PATH.snap
( cd $DST_PATH.snap; ln -s . $DST_FILE.snap )
fi
fi
EOF