From bdfaa5b27fa91716c4f337b8d28f2c8c4939395e Mon Sep 17 00:00:00 2001 From: DJP Date: Sat, 16 May 2026 13:04:11 -0400 Subject: [PATCH] deploy.sh: print Include line using actual repo path, not hardcoded /opt/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repo can be cloned to any directory (e.g. /opt/loreal-utilisation-dept to match the Bitbucket repo name) — the slug we use for the URL path and compose project is independent of the on-disk path. The previously printed Apache Include line assumed `/opt//`, which broke when the clone location didn't match the slug. Use $APACHE_CONF (already absolute and correct, derived from $SCRIPT_DIR) instead. Co-Authored-By: Claude Opus 4.7 (1M context) --- deploy/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index b1930cd..6eccbe1 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -260,7 +260,7 @@ if [[ -r "$VHOST" ]] && grep -qF "apache-${SLUG}.conf" "$VHOST"; then else warn "First-time deploy: add this line INSIDE of $VHOST :" echo - echo " Include /opt/${SLUG}/deploy/apache-${SLUG}.conf" + echo " Include ${APACHE_CONF}" echo warn "Then: sudo apachectl configtest && sudo systemctl reload apache2" fi