1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Update pg_hba generation

This commit is contained in:
Joe Ferguson
2015-02-11 15:12:11 -08:00
parent baf80692b5
commit 8f80834e93
7 changed files with 49 additions and 7 deletions

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do

View File

@ -19,6 +19,12 @@ if [ "$1" = 'postgres' ]; then
cat >&2 <<-'EOWARN' cat >&2 <<-'EOWARN'
**************************************************** ****************************************************
WARNING: No password has been set for the database. WARNING: No password has been set for the database.
This will allow anyone with access to the
Postgres port to access your database. In
Docker's default configuration, this is
effectively any other container on the same
system.
Use "-e POSTGRES_PASSWORD=password" to set Use "-e POSTGRES_PASSWORD=password" to set
it in "docker run". it in "docker run".
**************************************************** ****************************************************
@ -44,7 +50,7 @@ if [ "$1" = 'postgres' ]; then
EOSQL EOSQL
echo echo
{ echo; echo "host all \"$POSTGRES_USER\" 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf { echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA"/pg_hba.conf
if [ -d /docker-entrypoint-initdb.d ]; then if [ -d /docker-entrypoint-initdb.d ]; then
for f in /docker-entrypoint-initdb.d/*.sh; do for f in /docker-entrypoint-initdb.d/*.sh; do