From: Thierry Parmentelat Date: Tue, 7 Jun 2011 12:00:27 +0000 (+0200) Subject: reviewed comments - no change X-Git-Tag: plcapi-5.0-33~2 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=787b5830074330e18c93aaa4aeca59d4ad8bed15 reviewed comments - no change --- 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'