Skip to content

Commit 9bba13d

Browse files
committed
fix: more path updates
1 parent da987d4 commit 9bba13d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Dockerfile-15

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
179179
COPY migrations/db /docker-entrypoint-initdb.d/

Dockerfile-17

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
183183
RUN sed -i 's/ timescaledb,//g;' "/etc/postgresql/postgresql.conf"

Dockerfile-orioledb-17

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
183183
RUN sed -i 's/ timescaledb,//g;' "/etc/postgresql/postgresql.conf"

ansible/tasks/setup-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
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

nix/tools/run-server.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)