fix(ci): start postgres with pg_ctlcluster instead of systemctl
This commit is contained in:
@@ -43,7 +43,8 @@ jobs:
|
|||||||
- name: Start postgres
|
- name: Start postgres
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq && sudo apt-get install -y -qq postgresql > /dev/null
|
sudo apt-get update -qq && sudo apt-get install -y -qq postgresql > /dev/null
|
||||||
sudo systemctl start postgresql
|
PG_VER=$(ls /etc/postgresql/)
|
||||||
|
sudo pg_ctlcluster $PG_VER main start
|
||||||
sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'test';"
|
sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'test';"
|
||||||
sudo -u postgres psql -c "CREATE DATABASE polympr_test OWNER test;"
|
sudo -u postgres psql -c "CREATE DATABASE polympr_test OWNER test;"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user