From 4e7b2d2b9fc6a53ff3500fedb7998b6650ef16b1 Mon Sep 17 00:00:00 2001 From: jackz Date: Wed, 11 Dec 2024 21:03:34 -0600 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 73d3502..fc5543f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,6 +13,9 @@ fi scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE \ -P "${INPUT_PORT}" $INPUT_OPTIONS -r ${INPUT_SRC} "${INPUT_USER}"@"${INPUT_HOST}":"${INPUT_REMOTE}/${COMMIT_SHA}" 2>/dev/null -echo "File transfer complete, symlinking, purging old" +echo "File transfer complete." +echo "Symlinking, purging old" +echo "Running on ssh: ln -s ${INPUT_REMOTE}/${COMMIT_SHA} ${INPUT_REMOTE}/latest" + ssh -P "${INPUT_PORT}" "${INPUT_USER}"@"${INPUT_HOST}" \ -C "ln -s ${INPUT_REMOTE}/${COMMIT_SHA} ${INPUT_REMOTE}/latest && find . -mindepth 1 -maxdepth 1 -type d -not -path './latest' | tail -n +5 | rm -r"