Skip to content
Snippets Groups Projects
Commit 3f31ff4d authored by Lukas Braun's avatar Lukas Braun
Browse files

test_pg.sh: give the server time to start

parent bd8345cc
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,15 @@ echo "unix_socket_directories = '$PGHOST'" >"$PGDATA/postgresql.conf"
pg_ctl -l "$PGHOST/log" -o '-h ""' start
for i in $(seq 1 3); do
echo "Waiting for server ($i/3)"
if pg_ctl status >/dev/null 2>/dev/null; then
echo "Server is up"
break;
fi
sleep 1
done
export PGHOST="$PGHOST"
createdb goatherd_test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment