Skip to content

Commit 592b2a2

Browse files
ci(github): fix postgresql.conf file not found
1 parent 0761fcc commit 592b2a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/postgres.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ jobs:
8888

8989
- name: Alter max connections
9090
run: |
91+
POSTGRESQL_CONF=$(find / -name postgresql.conf)
9192
docker exec -i postgres bash << EOF
92-
sed -i -e 's/max_connections = 100/max_connections = 1000/' /var/lib/postgresql/data/postgresql.conf
93-
sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' /var/lib/postgresql/data/postgresql.conf
93+
sed -i -e 's/max_connections = 100/max_connections = 1000/' $POSTGRESQL_CONF
94+
sed -i -e 's/shared_buffers = 128MB/shared_buffers = 2GB/' $POSTGRESQL_CONF
9495
EOF
9596
docker restart --time 0 postgres
9697
sleep 5

0 commit comments

Comments
 (0)