# Mark Huang <mlhuang@cs.princeton.edu>
# 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
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