Fix syntax and property error

This commit is contained in:
Annika Backstrom 2024-05-19 00:45:04 +01:00
parent c7a9a8f2ab
commit 215f545119
Signed by: annika
GPG Key ID: 3561F004DE1D9AFE

View File

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