Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
alexbelgium authored Jan 31, 2024
1 parent b2def28 commit 00d6598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -31,8 +31,8 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
RUN \
# Correct for access
for file in /usr/share/postgresql/postgresql.conf.sample /usr/local/share/postgresql/postgresql.conf.sample; do \
sed -i "s|.*listen_addresses(.*)|listen_addresses = '*'(1)|g" "$file" && \
sed -i "s|.*data_directory(.*)|data_directory = '/config/database'(1)|g" "$file"; done
if [ -f "$file" ]; then sed -i "s|.*listen_addresses(.*)|listen_addresses = '*'(1)|g" "$file" && \
sed -i "s|.*data_directory(.*)|data_directory = '/config/database'(1)|g" "$file"; fi; done

##################
# 3 Install apps #

0 comments on commit 00d6598

Please sign in to comment.