Skip to content

Commit 50a49f8

Browse files
committed
Use /tmp for socket/lock files
1 parent 0ad6a1b commit 50a49f8

File tree

1 file changed

+2
-2
lines changed
  • tmt/tests/container/sanity/init

1 file changed

+2
-2
lines changed

tmt/tests/container/sanity/init/init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ make
2020
PGDATA=/var/lib/pgsql/data
2121
LOGFILE=/var/lib/pgsql/logfile
2222
su - postgres -c "
23-
/usr/bin/pg_ctl -D $PGDATA -l $LOGFILE start
24-
pg_ctl -D $PGDATA status && echo \"PostgreSQL is running\" || { echo \"PostgreSQL is NOT running\"; exit 1; }
23+
/usr/bin/pg_ctl -D $PGDATA -l $LOGFILE -o \"-c unix_socket_directories=/tmp\" start
24+
/usr/bin/pg_ctl -D $PGDATA status && echo \"PostgreSQL is running\" || { echo \"PostgreSQL is NOT running\"; exit 1; }
2525
"
2626

0 commit comments

Comments
 (0)