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