Opened 11 years ago
Closed 6 years ago
#39341 closed enhancement (fixed)
postgresql93-server @9.3beta1: more robust initdb invocation
Reported by: | gthb (Gunnlaugur Thor Briem) | Owned by: | jyrkiwahlstedt |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | postgresql93-server |
Description
The current invocation of initdb suggested in post-install output:
sudo su postgres -c '/opt/local/lib/postgresql93/bin/initdb -D /opt/local/var/db/postgresql93/defaultdb'
fails with somewhat confusing error messages if the user is in a directory not accessible to the postgres
user — and that's typically the case.
The attached patch changes this to a sudo -i -u postgres
invocation, which doesn't care which directory you run it from. That ought to cut down on people stumbling on the initdb
step as in #32817.
Attachments (1)
Change History (4)
Changed 11 years ago by gthb (Gunnlaugur Thor Briem)
Attachment: | Portfile-postgresql93-server.diff added |
---|
comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)
Cc: | mww@… added |
---|---|
Owner: | changed from macports-tickets@… to jwa@… |
Summary: | postgresql93-server @9.3beta1 more robust initdb invocation → postgresql93-server @9.3beta1: more robust initdb invocation |
Version: | 2.1.3 |
comment:2 Changed 8 years ago by mf2k (Frank Schima)
Cc: | mww@… removed |
---|---|
Status: | new → assigned |
comment:3 Changed 6 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Thanks. In the future, please Cc relevant port maintainers.