Move `git pull --ff-only origin main` to the very top of the script so every deploy reflects the latest committed code. Pull failure is now fatal (was warn-and-continue). After the pull, hash-compare deploy.sh against its pre-pull copy; if it changed, exec the new version with a DEPLOY_RECURSE_GUARD env var to prevent any chance of infinite re-exec. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apache-utilisation-dept.conf.tmpl | ||
| deploy.sh | ||