From 40c778d8e0475cf6f0f1ce74d5c737613324b7cf Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 23 Jun 2021 15:54:06 +0200 Subject: [PATCH] Only conditionally source this OIDC related env var Closes https://git.autonomic.zone/coop-cloud/hometown/issues/10. --- entrypoint.sh.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index ab15417..ed7aeb9 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -28,6 +28,9 @@ file_env "OTP_SECRET" file_env "SECRET_KEY_BASE" file_env "SMTP_PASSWORD" file_env "VAPID_PRIVATE_KEY" -file_env "OIDC_CLIENT_SECRET" + +if [ -z "$OIDC_ENABLED" ]; then + file_env "OIDC_CLIENT_SECRET" +fi /usr/bin/tini -- "$@"