ML Intern deploy commited on
Commit
6917738
·
1 Parent(s): 83a59ca

fix(entrypoint): postgres unix socket dir -> /tmp so non-root uid 1000 can start local bootstrap DB

Browse files
Files changed (1) hide show
  1. entrypoint.sh +1 -1
entrypoint.sh CHANGED
@@ -21,7 +21,7 @@ if [ -z "$DATABASE_URL" ] || [ -z "$REDIS_URL" ]; then
21
  initdb -D /tmp/pgdata -U postgres --auth=trust
22
  fi
23
  if ! pg_ctl -D /tmp/pgdata status >/dev/null 2>&1; then
24
- pg_ctl -D /tmp/pgdata -o "-p 5432 -h 127.0.0.1" -w start
25
  fi
26
  createdb -h 127.0.0.1 -p 5432 -U postgres httpsms 2>/dev/null || true
27
  redis-server --port 6379 --bind 127.0.0.1 --dir /tmp/redis --save "" --daemonize yes || true
 
21
  initdb -D /tmp/pgdata -U postgres --auth=trust
22
  fi
23
  if ! pg_ctl -D /tmp/pgdata status >/dev/null 2>&1; then
24
+ pg_ctl -D /tmp/pgdata -o "-p 5432 -h 127.0.0.1 -k /tmp" -w start
25
  fi
26
  createdb -h 127.0.0.1 -p 5432 -U postgres httpsms 2>/dev/null || true
27
  redis-server --port 6379 --bind 127.0.0.1 --dir /tmp/redis --save "" --daemonize yes || true