New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #28877 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by blb@…

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

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

comment:2 Changed 2 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #14706.

Note: See TracTickets for help on using tickets.