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