Check for LDM_PASSWORD

This commit is contained in:
Martin Lablans 2022-11-03 17:23:25 +01:00
parent 038d8d69f6
commit 6394e1fa82
1 changed files with 1 additions and 1 deletions

View File

@ -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