somratpro Claude Opus 4.7 commited on
Commit
2aa8665
·
1 Parent(s): 866a8e6

fix: write pg.log to /tmp — /postiz is root-owned, postgres user denied

Browse files
Files changed (1) hide show
  1. start.sh +1 -1
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 "${POSTIZ_HOME}/pg.log" \
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