Update entrypoint.sh

Adding :- Syntax which ensures that, if SKIP_CADDY is unset, it will be treated as an empty string, which will not match "true". This avoids potential issues with unbound variables in some shell configurations where set -u (treating unset variables as an error) is enabled.

(ChatGPT)
This commit is contained in:
BlockyBlockling 2024-11-04 13:07:20 +01:00 committed by GitHub
parent 1a8321c937
commit 7514206186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ crond -L /var/log/crond -l 5
export SUPERVISORD_CADDY=false
## disable caddy if SKIP_CADDY is set
if [[ "$SKIP_CADDY" == "true" ]];
if [[ "$SKIP_CADDY:-" == "true" ]];
echo "Starting PHP-FPM only"
else
echo "Starting PHP-FPM and Caddy"