From 787b5830074330e18c93aaa4aeca59d4ad8bed15 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 7 Jun 2011 14:00:27 +0200 Subject: [PATCH] reviewed comments - no change --- plc.d/postgresql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plc.d/postgresql b/plc.d/postgresql index 7e340f0..93cac8c 100755 --- a/plc.d/postgresql +++ b/plc.d/postgresql @@ -79,8 +79,9 @@ case "$1" in check fi - # Enable DB server. PostgreSQL >=8.0 defines listen_addresses, - # when run within a vserver, this may require localhost to be specified explicitly + # Enable DB server. drop Postgresql<=7.x + # PostgreSQL >=8.0 defines listen_addresses + # listen on a specific IP + localhost, more robust when run within a vserver sed -i -e '/^listen_addresses/d' $postgresql_conf echo "listen_addresses = '${PLC_DB_HOST},localhost'" >> $postgresql_conf # tweak timezone to be 'UTC' -- 2.43.0