From 3ae78311f558b669f6167f041a6b9de1ccf12862 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 18 Nov 2019 00:56:28 -0700 Subject: [PATCH] separate define and assign updated env vars --- build/entrypoint.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 3d7baca..e05b2c7 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -10,9 +10,14 @@ convertCase () { } # convert environment variables to UPPERCASE for proper string comparison -export ACCESS_LOG=$(convertCase "$ACCESS_LOG") -export HSTS=$(convertCase "$HSTS") -export TLS13_ONLY=$(convertCase "$TLS13_ONLY") +ACCESS_LOG=$(convertCase "$ACCESS_LOG") +HSTS=$(convertCase "$HSTS") +TLS13_ONLY=$(convertCase "$TLS13_ONLY") + +# export new environment variables +export ACCESS_LOG=$ACCESS_LOG +export HSTS=$HSTS +export TLS13_ONLY=$TLS13_ONLY ### update configuration files with environment variables # update server name list