diff --git a/9.2/docker-entrypoint.sh b/9.2/docker-entrypoint.sh index 95ec772380..f1bbf45c6b 100755 --- a/9.2/docker-entrypoint.sh +++ b/9.2/docker-entrypoint.sh @@ -17,6 +17,7 @@ if [ "$1" = 'postgres' ]; then # look specifically for PG_VERSION, as it is expected in the DB dir if [ ! -s "$PGDATA/PG_VERSION" ]; then gosu postgres initdb + { echo; echo "include_if_exists = '/etc/postgres/postgresql.conf'"; } >> "$PGDATA/postgresql.conf" # check password first so we can output the warning before postgres # messes it up diff --git a/9.3/docker-entrypoint.sh b/9.3/docker-entrypoint.sh index 95ec772380..c1697741c0 100755 --- a/9.3/docker-entrypoint.sh +++ b/9.3/docker-entrypoint.sh @@ -17,6 +17,7 @@ if [ "$1" = 'postgres' ]; then # look specifically for PG_VERSION, as it is expected in the DB dir if [ ! -s "$PGDATA/PG_VERSION" ]; then gosu postgres initdb + sed -i "s|^#include_if_exists = 'exists.conf'|include_if_exists = '/etc/postgres/postgresql.conf'|" "$PGDATA/postgresql.conf" # check password first so we can output the warning before postgres # messes it up diff --git a/9.4/docker-entrypoint.sh b/9.4/docker-entrypoint.sh index 95ec772380..c1697741c0 100755 --- a/9.4/docker-entrypoint.sh +++ b/9.4/docker-entrypoint.sh @@ -17,6 +17,7 @@ if [ "$1" = 'postgres' ]; then # look specifically for PG_VERSION, as it is expected in the DB dir if [ ! -s "$PGDATA/PG_VERSION" ]; then gosu postgres initdb + sed -i "s|^#include_if_exists = 'exists.conf'|include_if_exists = '/etc/postgres/postgresql.conf'|" "$PGDATA/postgresql.conf" # check password first so we can output the warning before postgres # messes it up diff --git a/9.5/docker-entrypoint.sh b/9.5/docker-entrypoint.sh index 95ec772380..c1697741c0 100755 --- a/9.5/docker-entrypoint.sh +++ b/9.5/docker-entrypoint.sh @@ -17,6 +17,7 @@ if [ "$1" = 'postgres' ]; then # look specifically for PG_VERSION, as it is expected in the DB dir if [ ! -s "$PGDATA/PG_VERSION" ]; then gosu postgres initdb + sed -i "s|^#include_if_exists = 'exists.conf'|include_if_exists = '/etc/postgres/postgresql.conf'|" "$PGDATA/postgresql.conf" # check password first so we can output the warning before postgres # messes it up