forked from docker-library/postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor listen_addresses to be set in the sample file, and make the …
…sample file easier to overwrite
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,11 @@ RUN apt-get update \ | |
postgresql-contrib-$PG_MAJOR=$PG_VERSION \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# make the sample config easier to munge (and "correct by default") | ||
RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/postgresql/ \ | ||
&& ln -sv ../postgresql.conf.sample /usr/share/postgresql/$PG_MAJOR/ \ | ||
&& sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/share/postgresql/postgresql.conf.sample | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tianon
Author
Member
|
||
|
||
RUN mkdir -p /var/run/postgresql && chown -R postgres /var/run/postgresql | ||
|
||
ENV PATH /usr/lib/postgresql/$PG_MAJOR/bin:$PATH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
should the exclamation marks not be "/"'s??