Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build/dev-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ PGDATA=/var/lib/postgresql/data
# is owned by the current UID, which is required by PostgreSQL and
# varies on OpenShift (random UID assignment).
if [ ! -f "$PGDATA/PG_VERSION" ]; then
# PostgreSQL requires the data directory to be mode 0700.
chmod 700 "$PGDATA" 2>/dev/null || true
/usr/lib/postgresql/16/bin/initdb -D "$PGDATA"
echo "host all all 0.0.0.0/0 trust" >> "$PGDATA/pg_hba.conf"
echo "local all all trust" >> "$PGDATA/pg_hba.conf"
Expand Down
Loading