Update run

This commit is contained in:
Alexandre
2025-07-16 15:33:39 +02:00
committed by GitHub
parent 567613914f
commit 3001fa2576

View File

@@ -16,8 +16,10 @@ chmod 775 /run/postgresql
PGDATA="${PGDATA:-/config/postgres-data}"
export PGDATA
mkdir -p "${PGDATA}"
chown -R postgres:postgres "${PGDATA}"
# Create and secure PGDATA
mkdir -p "$PGDATA"
chown -R postgres:postgres "$PGDATA"
chmod 0700 "$PGDATA"
INITDB="$(command -v initdb || echo /usr/bin/initdb)"
POSTGRES="$(command -v postgres || echo /usr/bin/postgres)"