File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ RUN \
172172 echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
173173 echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
174174 usermod -aG postgres wal-g && \
175- mkdir -p /etc/postgresql-custom && \
176- chown postgres:postgres /etc/postgresql-custom
175+ mkdir -p /etc/postgresql-custom/conf.d && \
176+ chown -R postgres:postgres /etc/postgresql-custom
177177
178178# # Include schema migrations
179179COPY migrations/db /docker-entrypoint-initdb.d/
Original file line number Diff line number Diff line change @@ -176,8 +176,8 @@ RUN \
176176 echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
177177 echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
178178 usermod -aG postgres wal-g && \
179- mkdir -p /etc/postgresql-custom && \
180- chown postgres:postgres /etc/postgresql-custom
179+ mkdir -p /etc/postgresql-custom/conf.d && \
180+ chown -R postgres:postgres /etc/postgresql-custom
181181
182182 # Remove items from postgresql.conf
183183RUN sed -i 's/ timescaledb,//g;' "/etc/postgresql/postgresql.conf"
Original file line number Diff line number Diff line change @@ -176,8 +176,8 @@ RUN \
176176 echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
177177 echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
178178 usermod -aG postgres wal-g && \
179- mkdir -p /etc/postgresql-custom && \
180- chown postgres:postgres /etc/postgresql-custom
179+ mkdir -p /etc/postgresql-custom/conf.d && \
180+ chown -R postgres:postgres /etc/postgresql-custom
181181
182182 # Remove items from postgresql.conf
183183RUN sed -i 's/ timescaledb,//g;' "/etc/postgresql/postgresql.conf"
Original file line number Diff line number Diff line change 156156 when : debpkg_mode or nixpkg_mode
157157
158158# Add custom config for read replicas set up
159- - name : Move custom read-replica.conf file to /etc/postgresql-custom/read-replica.conf
159+ - name : Move custom read-replica.conf file to /etc/postgresql-custom/conf.d/ read-replica.conf
160160 copy :
161161 src : " files/postgresql_config/conf.d/read-replica.conf"
162162 dest : /etc/postgresql-custom/conf.d/read-replica.conf
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ vault.getkey_script = '$PGSODIUM_GETKEY_SCRIPT'" \
233233-e " s|data_directory = '/var/lib/postgresql/data'|data_directory = '$DATDIR '|" \
234234-e " s|hba_file = '/etc/postgresql/pg_hba.conf'|hba_file = '$DATDIR /pg_hba.conf'|" \
235235-e " s|ident_file = '/etc/postgresql/pg_ident.conf'|ident_file = '$DATDIR /pg_ident.conf'|" \
236- -e " s|include_dir = '/etc/postgresql-custom'|include_dir = '$DATDIR /conf.d'|" \
236+ -e " s|include_dir = '/etc/postgresql-custom/conf.d '|include_dir = '$DATDIR /conf.d'|" \
237237" $PSQL_CONF_FILE " > " $DATDIR /postgresql.conf"
238238
239239# Function to configure OrioleDB specific settings
You can’t perform that action at this time.
0 commit comments