Skip to content

Commit d9e77c1

Browse files
committed
ci
1 parent 21af1c4 commit d9e77c1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: 'Install PostgreSQL'
4141
run: |
42-
# sudo apt-get purge postgresql-*
42+
sudo apt-get purge postgresql-*
4343
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg-snapshot main ${{ matrix.ci.PGVER }}" > /etc/apt/sources.list.d/pgdg.list'
4444
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
4545
sudo apt-get update
@@ -52,10 +52,11 @@ jobs:
5252
- name: 'Start PostgreSQL'
5353
run: |
5454
export PGVER=${{ matrix.ci.PGVER }}
55-
export PGDATA=/var/lib/postgresql/${{ matrix.ci.PGVER }}/main
56-
export PGETC=/etc/postgresql/${{ matrix.ci.PGVER }}/main
57-
export PGBIN=/usr/lib/postgresql/${{ matrix.ci.PGVER }}/bin
58-
export PGRUNNER=`whoami`
55+
export PGDATA=/var/lib/postgresql/$PGVER/main
56+
export PGETC=/etc/postgresql/$PGVER/main
57+
export PGBIN=/usr/lib/postgresql/$PGVER/bin
58+
# export PGRUNNER=
59+
sudo chmod -R 755 /home/`whoami`
5960
sudo cp ./ci/pg_hba.conf $PGETC/pg_hba.conf
6061
sudo systemctl stop postgresql
6162
sudo pg_ctlcluster $PGVER main start

0 commit comments

Comments
 (0)