Spaces:
Runtime error
Runtime error
fix: write pg.log to /tmp — /postiz is root-owned, postgres user denied
Browse files
start.sh
CHANGED
|
@@ -109,7 +109,7 @@ chown -R postgres:postgres "${PGDATA}"
|
|
| 109 |
if ! su-exec postgres "${PG_BIN}/pg_ctl" -D "${PGDATA}" status >/dev/null 2>&1; then
|
| 110 |
echo "Starting Postgres..."
|
| 111 |
su-exec postgres "${PG_BIN}/pg_ctl" -D "${PGDATA}" \
|
| 112 |
-
-l "
|
| 113 |
-o "-c listen_addresses='127.0.0.1' -c unix_socket_directories='/var/run/postgresql'" \
|
| 114 |
start >/dev/null
|
| 115 |
fi
|
|
|
|
| 109 |
if ! su-exec postgres "${PG_BIN}/pg_ctl" -D "${PGDATA}" status >/dev/null 2>&1; then
|
| 110 |
echo "Starting Postgres..."
|
| 111 |
su-exec postgres "${PG_BIN}/pg_ctl" -D "${PGDATA}" \
|
| 112 |
+
-l "/tmp/pg.log" \
|
| 113 |
-o "-c listen_addresses='127.0.0.1' -c unix_socket_directories='/var/run/postgresql'" \
|
| 114 |
start >/dev/null
|
| 115 |
fi
|