From ca2f6a3d5be100ef9fffa1700ec9141bb76988be Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 9 Feb 2007 19:26:18 +0000 Subject: [PATCH] - append site-specific access rules pg_hba.conf.d/*.conf to pg_hba.conf --- plc.d/postgresql | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plc.d/postgresql b/plc.d/postgresql index 0a1bf5a..18ca081 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.10 2007/01/19 17:25:27 mlhuang Exp $ +# $Id: postgresql,v 1.11 2007/02/05 19:11:06 mlhuang Exp $ # # Source function library and configuration @@ -104,6 +104,11 @@ case "$1" in echo "host drupal $PLC_DB_USER $PLC_WWW_IP/32 password" ) >>$pghba_conf + # Append site-specific access rules + for file in $pghba_conf.d/*.conf ; do + cat "$file" >>$pghba_conf + done + # Fix ownership (sed -i changes it) chown postgres:postgres $postgresql_conf $pghba_conf -- 2.43.0