Ticket #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: | jwa@… | |
| 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
Note: See
TracTickets for help on using
tickets.


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