We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0761fcc commit 592b2a2Copy full SHA for 592b2a2
.github/workflows/postgres.yml
@@ -88,9 +88,10 @@ jobs:
88
89
- name: Alter max connections
90
run: |
91
+ POSTGRESQL_CONF=$(find / -name postgresql.conf)
92
docker exec -i postgres bash << EOF
- 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
+ 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
95
EOF
96
docker restart --time 0 postgres
97
sleep 5
0 commit comments