From 7514206186441391b6871beaa7cf560a2dead7ed Mon Sep 17 00:00:00 2001 From: BlockyBlockling <51190350+BlockyBlockling@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:07:20 +0100 Subject: [PATCH] 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) --- .github/docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/docker/entrypoint.sh b/.github/docker/entrypoint.sh index a684f9f90..2f35b10a4 100644 --- a/.github/docker/entrypoint.sh +++ b/.github/docker/entrypoint.sh @@ -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"