PSQL_TRUST_LOCALNET config parameter renamed to PG_TRUST_LOCALNET

This commit is contained in:
Sameer Naik
2015-11-26 21:03:51 +05:30
parent c8e9dec549
commit de5295ffa7
3 changed files with 9 additions and 6 deletions
+4 -2
View File
@@ -3,7 +3,9 @@ set -e
PSQL_MODE=${PSQL_MODE:-}
PSQL_SSLMODE=${PSQL_SSLMODE:-}
PSQL_TRUST_LOCALNET=${PSQL_TRUST_LOCALNET:-false}
PG_TRUST_LOCALNET=${PG_TRUST_LOCALNET:-$PSQL_TRUST_LOCALNET} # backward compatibility
PG_TRUST_LOCALNET=${PG_TRUST_LOCALNET:-false}
REPLICATION_USER=${REPLICATION_USER:-}
REPLICATION_PASS=${REPLICATION_PASS:-}
@@ -229,7 +231,7 @@ initialize_database() {
}
trust_localnet() {
if [[ ${PSQL_TRUST_LOCALNET} == true ]]; then
if [[ ${PG_TRUST_LOCALNET} == true ]]; then
echo "Trusting connections from the local network..."
set_hba_param "host all all samenet trust"
fi