mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 04:50:15 +02:00
Check for LDM_PASSWORD
This commit is contained in:
@ -12,7 +12,7 @@ detectCompose() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setLdmPassword() {
|
setLdmPassword() {
|
||||||
if [ -z "$LDM_PASSWORD" ]; then
|
if [ -n "$LDM_PASSWORD" ]; then
|
||||||
log DEBUG "Transforming LDM_PASSWORD into LDM_LOGIN ..."
|
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')
|
LDM_LOGIN=$(docker run --rm -it httpd:alpine htpasswd -nb $PROJECT $LDM_PASSWORD | tr -d '\n' | tr -d '\r')
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user