/[smecontribs]/rpms/smeserver-postgresql/contribs7/smeserver-postgresql-0.0.1.tcpip_socket.patch4
ViewVC logotype

Annotation of /rpms/smeserver-postgresql/contribs7/smeserver-postgresql-0.0.1.tcpip_socket.patch4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Nov 25 16:20:28 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Restore

1 slords 1.1 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
2     --- smeserver-postgresql-0.0.1/root/etc/e-smith/templates/var/lib/pgsql/data/postgresql.conf/tcpip_socket 2007-09-11 18:51:57.000000000 -0400
3     +++ mezzanine_patched_smeserver-postgresql-0.0.1/root/etc/e-smith/templates/var/lib/pgsql/data/postgresql.conf/tcpip_socket 2007-09-11 18:51:33.000000000 -0400
4     @@ -1,13 +1,21 @@
5     {
6     my $local = $postgresql{LocalNetworkingOnly} || 'yes';
7     + my $access = $postgresql{access} || 'localhost';
8     if (scalar </usr/share/doc/postgresql-7.*>)
9     {
10     $OUT = "tcpip_socket = ";
11     $OUT .= ($local eq 'yes') ? 'false' : 'true';
12     + unless ($access eq 'public')
13     + {
14     + $OUT .= "\nvirtual_host = ";
15     + $OUT .= ($access eq 'private') ? "$LocalIP" : '127.0.0.1';
16     + }
17     }
18     else
19     {
20     $OUT = "listen_addresses = ";
21     - $OUT .= ($local eq 'yes') ? 'localhost' : "127.0.0.1,$LocalIP";
22     + $OUT .= ($local eq 'yes') ? 'localhost' :
23     + ($access eq 'public') ? '*' :
24     + ($access eq 'private') ? "127.0.0.1,$LocalIP" : '127.0.0.1';
25     }
26     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed