start: clean up

This commit is contained in:
Sameer Naik
2015-02-08 12:06:15 +05:30
parent 5d4cff076a
commit c5a9e8cdb2
+7 -6
View File
@@ -32,17 +32,18 @@ cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
listen_addresses = '*'
EOF
trust_local="host all all samenet trust"
if [ ${PSQL_TRUST_LOCALNET} = "true" ]; then
echo "Enabling trust samenet in pg_hba.conf..."
echo ${trust_local} >> ${PG_CONFDIR}/pg_hba.conf
fi
# 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
host all all samenet trust
EOF
fi
cd ${PG_HOME}
# initialize PostgreSQL data directory