swapped two pg_hba.conf updates.

This commit is contained in:
Greg Fausak
2015-02-10 13:38:49 +00:00
parent c5a9e8cdb2
commit a1486868fa
+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