mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 01:20:14 +02:00
Fix getting LDM_LOGIN
This commit is contained in:
@ -11,10 +11,11 @@ detectCompose() {
|
||||
fi
|
||||
}
|
||||
|
||||
setLdmPassword() {
|
||||
getLdmPassword() {
|
||||
if [ -n "$LDM_PASSWORD" ]; then
|
||||
log DEBUG "Transforming LDM_PASSWORD into LDM_LOGIN ..."
|
||||
export LDM_LOGIN=$(docker run --rm -it httpd:alpine htpasswd -nb $PROJECT $LDM_PASSWORD | tr -d '\n' | tr -d '\r')
|
||||
docker run --rm httpd:alpine htpasswd -nb $PROJECT $LDM_PASSWORD | tr -d '\n' | tr -d '\r'
|
||||
else
|
||||
echo -n ""
|
||||
fi
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user