updated
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled

This commit is contained in:
Yajbir Singh
2025-12-11 17:20:04 +05:30
parent db4b0e3625
commit a5644ce9fb

View File

@@ -265,6 +265,16 @@ if [ "${DB_HOST}" = "localhost" ]; then
create_postgresql_cluster create_postgresql_cluster
PG_NEW_CLUSTER=true PG_NEW_CLUSTER=true
fi fi
# Force trust authentication for localhost connections
# This fixes the "password authentication failed" error
if [ -d "${PGDATA}" ]; then
echo "local all onlyoffice trust" > "${PGDATA}/pg_hba.conf"
echo "local all all peer" >> "${PGDATA}/pg_hba.conf"
echo "host all all 127.0.0.1/32 trust" >> "${PGDATA}/pg_hba.conf"
echo "host all all ::1/128 trust" >> "${PGDATA}/pg_hba.conf"
fi
LOCAL_SERVICES+=("postgresql") LOCAL_SERVICES+=("postgresql")
fi fi