[MacPorts] #39341: postgresql93-server @9.3beta1 more robust initdb invocation
#39341: postgresql93-server @9.3beta1 more robust initdb invocation --------------------------+--------------------------------- Reporter: gunnlaugur@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: postgresql93-server --------------------------+--------------------------------- The current invocation of initdb suggested in post-install output: {{{#!sh 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. -- Ticket URL: <https://trac.macports.org/ticket/39341> MacPorts <http://www.macports.org/> Ports system for OS X
#39341: postgresql93-server @9.3beta1: more robust initdb invocation ----------------------------------+------------------- Reporter: gunnlaugur@… | Owner: jwa@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: postgresql93-server | ----------------------------------+------------------- Changes (by larryv@…): * owner: macports-tickets@… => jwa@… * cc: mww@… (added) * version: 2.1.3 => Comment: Thanks. In the future, please Cc relevant port maintainers. -- Ticket URL: <https://trac.macports.org/ticket/39341#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts