Opened 14 years ago

Closed 14 years ago

#28877 closed defect (duplicate)

postgresql post-install instructions are unreliable

Reported by: weior@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: jyrkiwahlstedt
Port: postgresql80-server postgresql81-server postgresql82-server postgresql83-server postgresql84-server postgresql90-server postgresql91-server

Description

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.

Change History (2)

comment:1 Changed 14 years ago by blb@…

Cc: jwa@… added
Owner: changed from macports-tickets@… to mww@…
Port: postgresql80-server postgresql81-server postgresql82-server postgresql83-server postgresql84-server postgresql90-server postgresql91-server added; postgresql91 removed

Switching them over to use notes instead of ui_msg would also be a good change...

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Duplicate of #14706.

Note: See TracTickets for help on using tickets.