@@ -191,11 +191,12 @@ RUN for f in /nix/var/nix/profiles/default/bin/*; do \
191191RUN chown -R postgres:postgres /usr/lib/postgresql && \
192192 chown -R postgres:postgres /usr/share/postgresql
193193
194- COPY docker/pgctld/postgresql.conf.tmpl /etc/pgctld/postgresql.conf.tmpl
194+ # Can't use /etc/pgctld because it's a mount point
195+ COPY docker/pgctld/postgresql.conf.tmpl /etc/pgctld-custom/postgresql.conf.tmpl
195196
196197# Wrapper: injects --postgres-config-template on every pgctld call so the team's
197198# unmodified k8s manifests and local provisioner commands work without extra flags.
198- RUN printf '#!/bin/sh\nexec /nix/var/nix/profiles/default/bin/pgctld --postgres-config-template /etc/pgctld/postgresql.conf.tmpl "$@"\n' \
199+ RUN printf '#!/bin/sh\nexec /nix/var/nix/profiles/default/bin/pgctld --postgres-config-template /etc/pgctld-custom /postgresql.conf.tmpl "$@"\n' \
199200 > /usr/local/bin/pgctld && \
200201 chmod +x /usr/local/bin/pgctld
201202
@@ -257,11 +258,12 @@ ENV LANG=C
257258ENV LC_ALL=C
258259ENV LANGUAGE=C
259260
260- COPY docker/pgctld/orioledb-postgresql.conf.tmpl /etc/pgctld/orioledb-postgresql.conf.tmpl
261+ # Can't use /etc/pgctld because it's a mount point
262+ COPY docker/pgctld/orioledb-postgresql.conf.tmpl /etc/pgctld-custom/orioledb-postgresql.conf.tmpl
261263
262264# Wrapper: injects --postgres-config-template on every pgctld call so the team's
263265# unmodified k8s manifests and local provisioner commands work without extra flags.
264- RUN printf '#!/bin/sh\nexec /nix/var/nix/profiles/default/bin/pgctld --postgres-config-template /etc/pgctld/orioledb-postgresql.conf.tmpl "$@"\n' \
266+ RUN printf '#!/bin/sh\nexec /nix/var/nix/profiles/default/bin/pgctld --postgres-config-template /etc/pgctld-custom /orioledb-postgresql.conf.tmpl "$@"\n' \
265267 > /usr/local/bin/pgctld && \
266268 chmod +x /usr/local/bin/pgctld
267269
0 commit comments