mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 03:40:14 +02:00
Make LDM password nicer
This commit is contained in:
@ -11,6 +11,13 @@ detectCompose() {
|
||||
fi
|
||||
}
|
||||
|
||||
setLdmPassword() {
|
||||
if [ -z "$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
|
||||
}
|
||||
|
||||
exitIfNotRoot() {
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
log "ERROR" "Please run as root"
|
||||
|
Reference in New Issue
Block a user