]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- fixed fatal error: pg_ctl doesn't allow calling with uid==0 any longer - use su...
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 23 Oct 2004 15:20:36 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.59

postgresql.init

index cfdbe1dd46bb549c9c646c3f207fae4cad07d174..b5d30c871718af477a567bbb66151c4f09b4cc20 100644 (file)
@@ -69,7 +69,7 @@ fi
 pgstatus() {
        PG_STATUS="unknown"
        PG_PID="unknown"
-       status=`/usr/bin/pg_ctl -D $1 status`
+       status=`TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status"`
 
        if echo "$status" | grep -q 'pg_ctl: postmaster or postgres not running'; then
                PG_STATUS="not running"
This page took 0.177193 seconds and 4 git commands to generate.