mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-06-28 03:49:45 +08:00
Merge pull request #15 from lgfausak/master
swapped two pg_hba.conf updates.
This commit is contained in:
@@ -32,11 +32,6 @@ cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
|
||||
listen_addresses = '*'
|
||||
EOF
|
||||
|
||||
# allow remote connections to postgresql database
|
||||
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
||||
host all all 0.0.0.0/0 md5
|
||||
EOF
|
||||
|
||||
if [ ${PSQL_TRUST_LOCALNET} = "true" ]; then
|
||||
echo "Enabling trust samenet in pg_hba.conf..."
|
||||
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
||||
@@ -44,6 +39,11 @@ host all all samenet trust
|
||||
EOF
|
||||
fi
|
||||
|
||||
# allow remote connections to postgresql database
|
||||
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
||||
host all all 0.0.0.0/0 md5
|
||||
EOF
|
||||
|
||||
cd ${PG_HOME}
|
||||
|
||||
# initialize PostgreSQL data directory
|
||||
|
||||
Reference in New Issue
Block a user