File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -169,9 +169,8 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.
169169COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
170170COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
171171
172- RUN sed -i \
173- -e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
174- /etc/postgresql/postgresql.conf && \
172+ RUN \
173+ echo "unix_socket_directories = '/var/run/postgresql'" >> /etc/postgresql/postgresql.conf && \
175174 echo "cron.database_name = 'postgres'" >> /etc/postgresql/postgresql.conf && \
176175 #echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
177176 echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -173,9 +173,8 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.
173173COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
174174COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
175175
176- RUN sed -i \
177- -e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
178- /etc/postgresql/postgresql.conf && \
176+ RUN \
177+ echo "unix_socket_directories = '/var/run/postgresql'" >> /etc/postgresql/postgresql.conf && \
179178 echo "cron.database_name = 'postgres'" >> /etc/postgresql/postgresql.conf && \
180179 #echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
181180 echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
Original file line number Diff line number Diff line change @@ -173,9 +173,8 @@ COPY --chown=postgres:postgres ansible/files/postgresql_config/custom_walg.conf.
173173COPY --chown=postgres:postgres ansible/files/walg_helper_scripts/wal_fetch.sh /home/postgres/wal_fetch.sh
174174COPY ansible/files/walg_helper_scripts/wal_change_ownership.sh /root/wal_change_ownership.sh
175175
176- RUN sed -i \
177- -e "s|#unix_socket_directories = '/tmp'|unix_socket_directories = '/var/run/postgresql'|g" \
178- /etc/postgresql/postgresql.conf && \
176+ RUN \
177+ echo "unix_socket_directories = '/var/run/postgresql'" >> /etc/postgresql/postgresql.conf && \
179178 echo "cron.database_name = 'postgres'" >> /etc/postgresql/postgresql.conf && \
180179 #echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
181180 echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
You can’t perform that action at this time.
0 commit comments