Opened 12 years ago

Last modified 3 years ago

#34626 assigned defect

postgresql91-server @9.1.3_0 - umask errors in post-install advice

Reported by: bytecrafter@… Owned by: jyrkiwahlstedt
Priority: Low Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: postgresql91-server

Description

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.

Change History (3)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Cc: jwa@… added
Keywords: umask removed
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Cc: jyrkiwahlstedt removed
Owner: changed from mww@… to jyrkiwahlstedt
Status: newassigned

comment:3 Changed 3 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.