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
1 changed files with 3 additions and 3 deletions

View File

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