Use templating to conditionally load this env var

Follows 40c778d8e0.
This commit is contained in:
decentral1se 2021-06-23 16:14:29 +02:00
parent 6788caedce
commit 531ea86434
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -29,8 +29,8 @@ file_env "SECRET_KEY_BASE"
file_env "SMTP_PASSWORD" file_env "SMTP_PASSWORD"
file_env "VAPID_PRIVATE_KEY" file_env "VAPID_PRIVATE_KEY"
if [ -z "$OIDC_ENABLED" ]; then {{ if eq (env "OIDC_ENABLED") "1" }}
file_env "OIDC_CLIENT_SECRET" file_env "OIDC_CLIENT_SECRET"
fi {{ end }}
/usr/bin/tini -- "$@" /usr/bin/tini -- "$@"