diff -Nur -x '*.orig' -x '*.rej' smeserver-postgresql-0.0.1/root/etc/e-smith/templates/var/lib/pgsql/data/postgresql.conf/tcpip_socket mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates/var/lib/pgsql/data/postgresql.conf/tcpip_socket --- smeserver-postgresql-0.0.1/root/etc/e-smith/templates/var/lib/pgsql/data/postgresql.conf/tcpip_socket 2007-05-24 16:13:22.000000000 -0400 +++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates/var/lib/pgsql/data/postgresql.conf/tcpip_socket 2007-05-24 16:12:37.000000000 -0400 @@ -1,5 +1,13 @@ { my $local = $postgresql{LocalNetworkingOnly} || 'yes'; - $OUT = "tcpip_socket = "; - $OUT .= ($local eq 'yes') ? 'false' : 'true'; + if (scalar ) + { + $OUT = "tcpip_socket = "; + $OUT .= ($local eq 'yes') ? 'false' : 'true'; + } + else + { + $OUT = "listen_addresses = "; + $OUT .= ($local eq 'yes') ? 'localhost' : "127.0.0.1,$LocalIP"; + } }