Changeset 3290
- Timestamp:
- 01/11/08 23:10:35 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pksetup
r3287 r3290 305 305 pgconffile = pgconffiles[i] 306 306 if (len(pgconfdirs) == 1) or self.yesno("Do PostgreSQL configuration files reside in %(pgconfdir)s" % locals()) : 307 answer = self.confirmPipe("to see if PostgreSQL accepts TCP/IP connections", "grep ^tcpip_socket %(pgconffile)s"% locals())307 answer = self.confirmPipe("to see if PostgreSQL accepts TCP/IP connections", 'egrep \\"^tcpip_socket|^listen_addresses\\" %(pgconffile)s' % locals()) 308 308 conflines = pghbaconf.split("\n") 309 309 if answer is not False : 310 tcpip = answer.strip().lower().endswith("true") 310 answer = answer.strip().lower() 311 tcpip = answer.endswith("true") 312 if tcpip is False : 313 tcpip = answer.startswith("listen_addresses") 311 314 else : 312 315 tcpip = False