Skip to content

Commit ebcba18

Browse files
committed
[fix] allow peer authentication for user "postgres" when running CI jobs
1 parent a52ae4b commit ebcba18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: .travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ before_install:
3939
- sudo apt-get install binutils libproj-dev gdal-bin -y
4040
- sudo cat /var/log/postgresql/postgresql-12-main.log
4141
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/12/main/postgresql.conf
42+
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/12/main/pg_hba.conf
4243
- sudo systemctl restart postgresql@12-main
4344
- sudo cat /var/log/postgresql/postgresql-12-main.log
4445
- pip install -U pip setuptools wheel

0 commit comments

Comments
 (0)