[MacPorts] #34626: postgresql91-server @9.1.3_0 - umask errors in post-install advice

MacPorts noreply at macports.org
Fri May 25 12:25:22 PDT 2012


#34626: postgresql91-server @9.1.3_0 - umask errors in post-install advice
-----------------------------------+----------------------------------------
 Reporter:  bytecrafter@…          |       Owner:  macports-tickets@…                   
     Type:  defect                 |      Status:  new                                  
 Priority:  Low                    |   Milestone:                                       
Component:  ports                  |     Version:  2.1.1                                
 Keywords:  umask                  |        Port:  postgresql91-server                  
-----------------------------------+----------------------------------------
 After installing, the on-screen instructions say to do the following:

 {{{
 sudo mkdir -p /opt/local/var/db/postgresql91/defaultdb
 sudo chown postgres:postgres /opt/local/var/db/postgresql91/defaultdb
 sudo su postgres -c '/opt/local/lib/postgresql91/bin/initdb -D
 /opt/local/var/db/postgresql91/defaultdb'
 }}}

 However, I use a different umask than the default (I use 077). I had to
 use the following sequence:

 {{{
 umask 022

 sudo mkdir -p /opt/local/var/db/postgresql91/defaultdb
 sudo chown postgres:postgres /opt/local/var/db/postgresql91/defaultdb

 #because I was somewhere in my home directory when executing the initdb
 #command, it failed with "could not identify current directory: Permission
 denied".
 cd /

 sudo su postgres -c '/opt/local/lib/postgresql91/bin/initdb -D
 /opt/local/var/db/postgresql91/defaultdb'
 }}}

 I realize that my situation is strange enough that the maintainer might
 prefer to leave the post-install advice simple and straightforward.

-- 
Ticket URL: <https://trac.macports.org/ticket/34626>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list