From 531ea86434519041bfc969348e681eea59bf4951 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 23 Jun 2021 16:14:29 +0200 Subject: [PATCH] Use templating to conditionally load this env var Follows 40c778d8e0475cf6f0f1ce74d5c737613324b7cf. --- entrypoint.sh.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index ed7aeb9..d0059a2 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -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 -- "$@"