Changeset 3290

Show
Ignore:
Timestamp:
01/11/08 23:10:35 (16 years ago)
Author:
jerome
Message:

Fixed a problem where PostgreSQL 8.x wants 'listen_addresses' instead of 'tcpip_socket' in 7.4

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pksetup

    r3287 r3290  
    305305                pgconffile = pgconffiles[i] 
    306306                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()) 
    308308                    conflines = pghbaconf.split("\n") 
    309309                    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") 
    311314                    else :     
    312315                        tcpip = False