Update entrypoint.sh

Fixing that its only checking for the existence of the environment variable „SKIP_CADDY“ instead of checking for its value
This commit is contained in:
BlockyBlockling 2024-11-04 12:43:40 +01:00 committed by GitHub
parent 340ae8099b
commit 1a8321c937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,11 +52,11 @@ crond -L /var/log/crond -l 5
export SUPERVISORD_CADDY=false export SUPERVISORD_CADDY=false
## disable caddy if SKIP_CADDY is set ## disable caddy if SKIP_CADDY is set
if [[ -z $SKIP_CADDY ]]; then if [[ "$SKIP_CADDY" == "true" ]];
echo "Starting PHP-FPM only"
else
echo "Starting PHP-FPM and Caddy" echo "Starting PHP-FPM and Caddy"
export SUPERVISORD_CADDY=true export SUPERVISORD_CADDY=true
else
echo "Starting PHP-FPM only"
fi fi
chown -R www-data:www-data /pelican-data/.env /pelican-data/database chown -R www-data:www-data /pelican-data/.env /pelican-data/database