mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-12 12:00:50 +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 = '*'
|
listen_addresses = '*'
|
||||||
EOF
|
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
|
if [ ${PSQL_TRUST_LOCALNET} = "true" ]; then
|
||||||
echo "Enabling trust samenet in pg_hba.conf..."
|
echo "Enabling trust samenet in pg_hba.conf..."
|
||||||
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
||||||
@@ -44,6 +39,11 @@ host all all samenet trust
|
|||||||
EOF
|
EOF
|
||||||
fi
|
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}
|
cd ${PG_HOME}
|
||||||
|
|
||||||
# initialize PostgreSQL data directory
|
# initialize PostgreSQL data directory
|
||||||
|
|||||||
Reference in New Issue
Block a user