You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-11-17 13:02:40 +03:00
Merge pull request #270 from pahaz/patch-1
Simplify `docker-entrypoint.sh` append one line to EOF
This commit is contained in:
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
@@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
authMethod=trust
|
authMethod=trust
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
|
{
|
||||||
|
echo
|
||||||
|
echo "host all all all $authMethod"
|
||||||
|
} >> "$PGDATA/pg_hba.conf"
|
||||||
|
|
||||||
# internal start of server in order to allow set-up using psql-client
|
# internal start of server in order to allow set-up using psql-client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# does not listen on external TCP/IP and waits until start finishes
|
||||||
|
|||||||
Reference in New Issue
Block a user