Skip to content

Commit 954df16

Browse files
committed
ci
1 parent 5f5fb36 commit 954df16

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,21 @@ jobs:
5151
5252
- name: 'Start PostgreSQL'
5353
run: |
54+
export PGVER=${{ matrix.ci.PGVER }}
5455
export PGDATA=/var/lib/postgresql/${{ matrix.ci.PGVER }}/main
5556
export PGETC=/etc/postgresql/${{ matrix.ci.PGVER }}/main
5657
export PGBIN=/usr/lib/postgresql/${{ matrix.ci.PGVER }}/bin
58+
export PGRUNNER=`whoami`
5759
# needed for pg18 and above cause cluster is no longer created on install
5860
# if [ ! -d "$PGETC" ]; then
5961
# sudo pg_createcluster ${{ matrix.ci.PGVER }} main
6062
# fi
63+
sudo chmod -R 755 /home/${PGRUNNER}
6164
sudo cp ./ci/pg_hba.conf $PGETC/pg_hba.conf
62-
sudo su postgres -c "$PGBIN/pg_ctl --pgdata $PGDATA start -o '-c config_file=$PGETC/postgresql.conf -p 5432'"
65+
sudo systemctl stop postgresql
66+
sudo pg_ctlcluster $PGVER main start
67+
sudo pg_lsclusters
68+
# sudo su postgres -c "$PGBIN/pg_ctl --pgdata $PGDATA start -o '-c config_file=$PGETC/postgresql.conf -p 5432'"
6369
6470
- name: 'Start HttpBin Docker'
6571
run: |

0 commit comments

Comments
 (0)