[MacPorts] #39342: postgresql92-server @9.2.4 more robust initdb invocation
#39342: postgresql92-server @9.2.4 more robust initdb invocation --------------------------+--------------------------------- Reporter: gunnlaugur@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: postgresql92-server --------------------------+--------------------------------- The current invocation of initdb suggested in post-install output: {{{#!sh sudo su postgres -c '/opt/local/lib/postgresql92/bin/initdb -D /opt/local/var/db/postgresql92/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/39342> MacPorts <http://www.macports.org/> Ports system for OS X
#39342: postgresql92-server @9.2.4 more robust initdb invocation ----------------------------------+------------------- Reporter: gunnlaugur@… | Owner: mww@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: postgresql92-server | ----------------------------------+------------------- Changes (by ryandesign@…): * cc: jwa@… (added) * owner: macports-tickets@… => mww@… Comment: Doesn't this also affect the other postgresql*-server ports? -- Ticket URL: <https://trac.macports.org/ticket/39342#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39342: postgresql92-server @9.2.4 more robust initdb invocation ----------------------------------+------------------- Reporter: gunnlaugur@… | Owner: mww@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: postgresql92-server | ----------------------------------+------------------- Comment (by larryv@…): Either this ticket or #39341 should be closed as a duplicate. -- Ticket URL: <https://trac.macports.org/ticket/39342#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39342: postgresql92-server @9.2.4 more robust initdb invocation ----------------------------------+------------------- Reporter: gunnlaugur@… | Owner: mww@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: postgresql92-server | ----------------------------------+------------------- Comment (by gunnlaugur@…): Yeah, this one should be closed I guess. Sorry about that; my sleep- deprived thinking was that (a) MacPorts maintainers seemed to prefer separate tickets for separate ports (ticket guidelines being so strict- sounding), and (b) postgresql91-server and down were less important to maintain, and I didn't want to make *more* near-duplicate tickets. Really I should have gotten some sleep and then posted the one ticket. : ) -- Ticket URL: <https://trac.macports.org/ticket/39342#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts