mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Configure the postgres server to accept local connections without password
This commit is contained in:
parent
d41996b365
commit
07f1ce5822
1 changed files with 2 additions and 5 deletions
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
|
@ -57,9 +57,10 @@ jobs:
|
||||||
run: sudo systemctl start mysql.service
|
run: sudo systemctl start mysql.service
|
||||||
if: matrix.db-type == 'mysql'
|
if: matrix.db-type == 'mysql'
|
||||||
|
|
||||||
|
# Replace the scram-sha-256 with trust for host connections, to avoid password authentication
|
||||||
- name: Start PostgreSQL
|
- name: Start PostgreSQL
|
||||||
run: |
|
run: |
|
||||||
sudo "echo 'host all all" >> /etc/postgresql/16/main/pg_hba.conf"
|
sudo sed -i 's/^\(host.*all.*all.*\)scram-sha-256/\1trust/' /etc/postgresql/14/main/pg_hba.conf
|
||||||
sudo systemctl start postgresql.service
|
sudo systemctl start postgresql.service
|
||||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
|
sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"
|
||||||
if: matrix.db-type == 'postgres'
|
if: matrix.db-type == 'postgres'
|
||||||
|
@ -148,7 +149,3 @@ jobs:
|
||||||
if: matrix.db-type == 'mysql' && matrix.php-versions == '8.2'
|
if: matrix.db-type == 'mysql' && matrix.php-versions == '8.2'
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: mysql://root:root@localhost:3306/legacy_db
|
DATABASE_URL: mysql://root:root@localhost:3306/legacy_db
|
||||||
|
|
||||||
- name: Setup tmate session
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
if: ${{ failure() }}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue