sed -i -e '/^listen_addresses/d' $postgresql_conf
echo "listen_addresses = '${PLC_DB_HOST},localhost'" >> $postgresql_conf
# tweak timezone to be 'UTC'
sed -i -e '/^timezone=/d' $postgresql_conf
echo "timezone='UTC'" >> $postgresql_conf
sed -i -e '/^listen_addresses/d' $postgresql_conf
echo "listen_addresses = '${PLC_DB_HOST},localhost'" >> $postgresql_conf
# tweak timezone to be 'UTC'
sed -i -e '/^timezone=/d' $postgresql_conf
echo "timezone='UTC'" >> $postgresql_conf