File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments