[MacPorts] #28877: postgresql post-install instructions are unreliable

MacPorts noreply at macports.org
Wed Mar 23 10:17:22 PDT 2011


#28877: postgresql post-install instructions are unreliable
---------------------------------+------------------------------------------
 Reporter:  weior@…              |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.9.2                                
 Keywords:                       |        Port:  postgresql91                         
---------------------------------+------------------------------------------
 During install, this is displayed:

 {{{

 To create a database instance, after install do
  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, the last command with `su` is sensitive to current directory, and
 usually it will fail with confusing message:

 {{{
 shell-init: error retrieving current directory: getcwd: cannot access
 parent directories: Permission denied
 }}}

 I suggest adding `cd` to these instructions.

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


More information about the macports-tickets mailing list