Add export

This commit is contained in:
Martin Lablans 2022-11-03 17:38:46 +01:00
parent 729d4e2c1e
commit 3ead08fae1
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ detectCompose() {
setLdmPassword() {
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')
export LDM_LOGIN=$(docker run --rm -it httpd:alpine htpasswd -nb $PROJECT $LDM_PASSWORD | tr -d '\n' | tr -d '\r')
fi
}