From 6f43f34d68a23a93fb8341ff02ef6d8211c815dd Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Thu, 26 Mar 2026 14:52:31 +0100 Subject: [PATCH] Fix deploy dry-run flag and generalize env example --- scripts/.deploy.env.example | 6 +++--- scripts/deploy.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/.deploy.env.example b/scripts/.deploy.env.example index 63054a3..ecdf84b 100644 --- a/scripts/.deploy.env.example +++ b/scripts/.deploy.env.example @@ -1,9 +1,9 @@ # Copy this file to scripts/.deploy.env and fill in your values. -DEPLOY_HOST="root@example.com" -DEPLOY_TARGET="/home/user/web/xmrpay.link/public_html" +DEPLOY_HOST="USER@HOST" +DEPLOY_TARGET="/home/USER/web/xmrpay.link/public_html" # Optional hardening settings: # DEPLOY_BACKUP_ENABLE="1" # DEPLOY_BACKUP_KEEP="14" -# DEPLOY_BACKUP_DIR="/home/user/web/xmrpay.link/backups/xmrpay-data" +# DEPLOY_BACKUP_DIR="/home/USER/web/xmrpay.link/backups/xmrpay-data" # DEPLOY_DRY_RUN="0" diff --git a/scripts/deploy.sh b/scripts/deploy.sh index e1bd22a..f6ef47c 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -68,14 +68,14 @@ else echo "Skipping pre-deploy backup (DEPLOY_BACKUP_ENABLE=0)." fi -RSYNC_DRY_RUN=() +RSYNC_DRY_RUN="" if [[ "$DRY_RUN" == "1" ]]; then - RSYNC_DRY_RUN+=("--dry-run") + RSYNC_DRY_RUN="--dry-run" echo "Running in dry-run mode (DEPLOY_DRY_RUN=1)." fi rsync -avz --delete \ - "${RSYNC_DRY_RUN[@]}" \ + ${RSYNC_DRY_RUN} \ --exclude '.git' \ --exclude 'node_modules' \ --exclude 'data/' \