From 6c15f71fe1be51a4f139ca4f426505856af8eed3 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 19 Jan 2007 16:42:08 +0000 Subject: [PATCH] - explicitly add localhost to pg_hba.conf (for case when PLC_API_IP and PLC_WWW_IP do not resolve to PLC_DB_IP) --- plc.d/postgresql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plc.d/postgresql b/plc.d/postgresql index d2dbda3..fc1d2a8 100755 --- a/plc.d/postgresql +++ b/plc.d/postgresql @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: postgresql,v 1.7 2006/11/16 18:50:32 mlhuang Exp $ +# $Id: postgresql,v 1.8 2007/01/18 22:09:14 mlhuang Exp $ # # Source function library and configuration @@ -94,6 +94,7 @@ case "$1" in PLC_API_IP=$(gethostbyname $PLC_API_HOST) PLC_WWW_IP=$(gethostbyname $PLC_WWW_HOST) ( + echo "host $PLC_DB_NAME $PLC_DB_USER 127.0.0.1/32 password" echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_API_IP/32 password" echo "host $PLC_DB_NAME $PLC_DB_USER $PLC_WWW_IP/32 password" # Drupal also uses PostgreSQL -- 2.43.0