From 215f54511915b82f00205c4e8117cc35f9b123bc Mon Sep 17 00:00:00 2001 From: Annika Backstrom Date: Sun, 19 May 2024 00:45:04 +0100 Subject: [PATCH] Fix syntax and property error --- entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 406f4e9..bb64088 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,12 +4,10 @@ LOCAL_PATH="$1" DEPLOY_PATH="$2" RESTART_NGINX="$3" -env - rsync -hrz --delete -C --exclude=".*" -e ssh "$LOCAL_PATH" "deploy.sixohthree.com:/tmp/gitea_${GITHUB_RUN_NUMBER}_${GITHUB_SHA}" ssh deploy.sixohthree.com "dsh -M -c -r ssh -g webs -- rsync -hvrz --delete -C -e ssh deploy.sixohthree.com:/tmp/gitea_${GITHUB_RUN_NUMBER}_${GITHUB_SHA}/ $DEPLOY_PATH" ssh deploy.sixohthree.com "rm -rf /tmp/gitea_${GITHUB_RUN_NUMBER}_${GITHUB_SHA}" -if [ "$RESTART_NGINX" = "1"]; then +if [ "$RESTART_NGINX" = "yes" ]; then ssh deploy.sixohthree.com "dsh -M -c -r ssh -g webs -- sudo systemctl reload nginx" fi