fix: Fail on empty htpasswd output and follow a symlinked local.conf

This commit is contained in:
Pierre Delpy
2026-11-26 10:31:11 +01:00
parent a785e6831b
commit f395330d19
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -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