Skip to content

Commit

Permalink
Merge pull request pelican-dev#700 from BlockyBlockling/skip-caddy-fix
Browse files Browse the repository at this point in the history
Fixing Docker Environment variable only getting checked for existence instead of value
  • Loading branch information
parkervcp authored Nov 4, 2024
2 parents 340ae80 + 968239b commit ac67656
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ crond -L /var/log/crond -l 5
export SUPERVISORD_CADDY=false

## disable caddy if SKIP_CADDY is set
if [[ -z $SKIP_CADDY ]]; then
if [[ "${SKIP_CADDY:-}" == "true" ]]; then
echo "Starting PHP-FPM only"
else
echo "Starting PHP-FPM and Caddy"
export SUPERVISORD_CADDY=true
else
echo "Starting PHP-FPM only"
fi

chown -R www-data:www-data /pelican-data/.env /pelican-data/database
Expand Down

0 comments on commit ac67656

Please sign in to comment.