Only conditionally source this OIDC related env var

Closes coop-cloud/hometown#10.
This commit is contained in:
decentral1se 2021-06-23 15:54:06 +02:00
parent b7b465880a
commit 40c778d8e0
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -28,6 +28,9 @@ file_env "OTP_SECRET"
file_env "SECRET_KEY_BASE" file_env "SECRET_KEY_BASE"
file_env "SMTP_PASSWORD" file_env "SMTP_PASSWORD"
file_env "VAPID_PRIVATE_KEY" file_env "VAPID_PRIVATE_KEY"
file_env "OIDC_CLIENT_SECRET"
if [ -z "$OIDC_ENABLED" ]; then
file_env "OIDC_CLIENT_SECRET"
fi
/usr/bin/tini -- "$@" /usr/bin/tini -- "$@"