From a2a5af4078ac20fe3617d428f37d4fe6a1dadffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zachary=20Gu=C3=A9not?= Date: Sun, 13 Sep 2026 16:48:25 +0200 Subject: [PATCH] chore(ops): itemize the dry-run so it actually shows the plan Co-Authored-By: Claude Opus 5 --- ops/deploy-lxc.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ops/deploy-lxc.sh b/ops/deploy-lxc.sh index 1be7c7039..7bfac4405 100755 --- a/ops/deploy-lxc.sh +++ b/ops/deploy-lxc.sh @@ -113,10 +113,14 @@ fi if [ -n "$DRY_RUN" ]; then say "Mode --dry-run : arrĂȘt avant toute modification de la prod" - rsync -an --delete \ + # -i sans quoi rsync ne dit rien du tout en mode simulation. + rsync -ain --delete --rsync-path="sudo rsync" \ --exclude 'run.sh' --exclude 'entrypoint.sh' \ --exclude 'nginx.conf' --exclude 'redis.conf' \ - "$STAGE/" "$HOST:$REMOTE_DIR/" | head -40 + "$STAGE/" "$HOST:$REMOTE_DIR/" | tee /tmp/homarr-deploy-plan.txt | head -30 + echo + echo "$(grep -c '^\*deleting' /tmp/homarr-deploy-plan.txt) suppressions, \ +$(grep -vc '^\*deleting' /tmp/homarr-deploy-plan.txt) Ă©critures. Plan complet : /tmp/homarr-deploy-plan.txt" exit 0 fi