mirror of
https://github.com/samply/bridgehead.git
synced 2026-11-26 20:56:03 +01:00
fix: Fail on empty htpasswd output and follow a symlinked local.conf
This commit is contained in:
@@ -142,7 +142,7 @@ if [ ! -z "$LDM_PASSWORD" ]; then
|
||||
log "INFO" "Migrating LDM_PASSWORD to encrypted credentials in $FILE"
|
||||
add_basic_auth_user $PROJECT $LDM_PASSWORD "LDM_AUTH" $PROJECT
|
||||
add_basic_auth_user $PROJECT $LDM_PASSWORD "NNGM_AUTH" $PROJECT
|
||||
sed -i "/LDM_PASSWORD/{d;}" $FILE
|
||||
sed -i --follow-symlinks "/LDM_PASSWORD/{d;}" $FILE
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user