Merge pull request #15 from lgfausak/master

swapped two pg_hba.conf updates.
This commit is contained in:
Sameer Naik
2015-02-10 21:34:06 +05:30
+5 -5
View File
@@ -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