start: fix PSQL_TRUST_LOCALNET enabled check

This commit is contained in:
Sameer Naik
2015-02-15 08:43:42 +05:30
parent fec631fe5a
commit 1184d9e566
+1 -1
View File
@@ -32,7 +32,7 @@ cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
listen_addresses = '*'
EOF
if [ ${PSQL_TRUST_LOCALNET} = "true" ]; then
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