From 2c2696a8c31466cb4a1f788cf8dd6443d48da7e5 Mon Sep 17 00:00:00 2001 From: Jacob Yundt Date: Wed, 13 Jul 2022 04:52:40 -0400 Subject: [PATCH] docker: Add support for SMTP password file (#240) Similar to LLDAP_JWT_SECRET and LLDAP_LDAP_USER_PASS, add option to use an ENV variable to specify the file of the SMTP password: LLDAP_SMTP_OPTIONS__PASSWORD_FILE --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ff7d30b..5536b46 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -for SECRET in LLDAP_JWT_SECRET LLDAP_LDAP_USER_PASS; do +for SECRET in LLDAP_JWT_SECRET LLDAP_LDAP_USER_PASS LLDAP_SMTP_OPTIONS__PASSWORD; do FILE_VAR="${SECRET}_FILE" SECRET_FILE="${!FILE_VAR:-}" if [[ -n "$SECRET_FILE" ]]; then