From 6394e1fa822a6b295740866458a246542d64bcc1 Mon Sep 17 00:00:00 2001 From: Martin Lablans Date: Thu, 3 Nov 2022 17:23:25 +0100 Subject: [PATCH] Check for LDM_PASSWORD --- lib/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index 3dd47cb..e55d31a 100755 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -12,7 +12,7 @@ detectCompose() { } setLdmPassword() { - if [ -z "$LDM_PASSWORD" ]; then + if [ -n "$LDM_PASSWORD" ]; then log DEBUG "Transforming LDM_PASSWORD into LDM_LOGIN ..." LDM_LOGIN=$(docker run --rm -it httpd:alpine htpasswd -nb $PROJECT $LDM_PASSWORD | tr -d '\n' | tr -d '\r') fi