Skip to content

Commit 5476e85

Browse files
committed
-
1 parent 6aec32d commit 5476e85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contrib/pg_exchange/gcp/init.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ export PGDATABASE=test
1515
pkill -9 -e postgres || true
1616
sleep 1
1717

18-
rm -rf $GDATA
19-
mkdir $GDATA
18+
rm -rf $PGDATA
19+
mkdir $PGDATA
2020
rm -rf logfile.log || true
2121

2222
# Building project
23-
./cmp.sh
23+
2424
make > /dev/null
2525
make -C contrib > /dev/null
2626
make install > /dev/null
2727
make -C contrib install > /dev/null
2828

29-
initdb -D GCP_PGDATA -E UTF8 --locale=C
29+
initdb -D $PGDATA -E UTF8 --locale=C
3030

3131
echo "shared_preload_libraries = 'postgres_fdw, pg_exchange'" >> $PGDATA/postgresql.conf
3232
echo "listen_addresses = '*'" >> $PGDATA/postgresql.conf
3333
echo "host all all 0.0.0.0/0 trust" >> $PGDATA/pg_hba.conf
3434

35-
pg_ctl -w -c -D $PGDATA -l logfile-$1.log start
35+
pg_ctl -w -c -D $PGDATA -l logfile.log start
3636
createdb
3737

0 commit comments

Comments
 (0)