File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,7 @@ RUN ln -sf /dev/stdout /var/log/apache2/access.log \
153153# Configure PosgtreSQL
154154COPY postgresql.custom.conf.tmpl /etc/postgresql/12/main/
155155RUN chown -R postgres:postgres /var/lib/postgresql \
156- && chown postgres:postgres /etc/postgresql/12/main/postgresql.custom.conf.tmpl \
157- && echo "\n include 'postgresql.custom.conf'" >> /etc/postgresql/12/main/postgresql.conf
156+ && chown postgres:postgres /etc/postgresql/12/main/postgresql.custom.conf.tmpl
158157RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/12/main/pg_hba.conf \
159158 && echo "host all all ::/0 md5" >> /etc/postgresql/12/main/pg_hba.conf
160159
Original file line number Diff line number Diff line change 33set -x
44
55function createPostgresConfig() {
6- cp /etc/postgresql/12/main/postgresql.custom.conf.tmpl /etc/postgresql/12/main/postgresql.custom.conf
7- sudo -u postgres echo " autovacuum = $AUTOVACUUM " >> /etc/postgresql/12/main/postgresql.custom.conf
8- cat /etc/postgresql/12/main/postgresql.custom.conf
6+ cp /etc/postgresql/12/main/postgresql.custom.conf.tmpl /etc/postgresql/12/main/conf.d/ postgresql.custom.conf
7+ sudo -u postgres echo " autovacuum = $AUTOVACUUM " >> /etc/postgresql/12/main/conf.d/ postgresql.custom.conf
8+ cat /etc/postgresql/12/main/conf.d/ postgresql.custom.conf
99}
1010
1111function setPostgresPassword() {
You can’t perform that action at this time.
0 commit comments