From 8077c0904bfbac4f173115a6df6db8952f00097a Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Fri, 21 Feb 2020 16:11:23 +0100 Subject: [PATCH] M #~: Add missing files to install.sh (#4196) --- install.sh | 2 ++ src/tm_mad/shared/mvds.ssh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/install.sh b/install.sh index 0deb7fcec5..a3850326ce 100755 --- a/install.sh +++ b/install.sh @@ -1272,6 +1272,7 @@ TM_FILES="src/tm_mad/tm_common.sh" TM_SHARED_FILES="src/tm_mad/shared/clone \ src/tm_mad/shared/delete \ src/tm_mad/shared/ln \ + src/tm_mad/shared/ln.ssh \ src/tm_mad/shared/mkswap \ src/tm_mad/shared/mkimage \ src/tm_mad/shared/mv \ @@ -1280,6 +1281,7 @@ TM_SHARED_FILES="src/tm_mad/shared/clone \ src/tm_mad/shared/postmigrate \ src/tm_mad/shared/failmigrate \ src/tm_mad/shared/mvds \ + src/tm_mad/shared/mvds.ssh \ src/tm_mad/shared/snap_create \ src/tm_mad/shared/snap_create_live \ src/tm_mad/shared/snap_delete \ diff --git a/src/tm_mad/shared/mvds.ssh b/src/tm_mad/shared/mvds.ssh index da09b4240e..03abb7f5d9 100755 --- a/src/tm_mad/shared/mvds.ssh +++ b/src/tm_mad/shared/mvds.ssh @@ -53,6 +53,11 @@ DST_PATH="$(arg_path $DST)" log "Moving $SRC to datastore as $DST" +# if symlink, nothing to do +if [[ -L $SRC ]]; then + exit 0 +fi + ssh_exec_and_log "${SRC_HOST}" \ "cp -r ${SRC_PATH} ${DST_PATH}" \ "Error copying ${SRC} to ${DST}" >&2