deploy.sh: print Include line using actual repo path, not hardcoded /opt/<slug>
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/<slug>/`, 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) <noreply@anthropic.com>
This commit is contained in:
parent
287f0b1b01
commit
bdfaa5b27f
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ if [[ -r "$VHOST" ]] && grep -qF "apache-${SLUG}.conf" "$VHOST"; then
|
|||
else
|
||||
warn "First-time deploy: add this line INSIDE </VirtualHost> 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue