Revision 13172
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/lib/sh/db.sh | ||
---|---|---|
260 | 260 |
if test "$database"; then local PGDATABASE="$database"; export PGDATABASE;fi |
261 | 261 |
log+ 2 |
262 | 262 |
|
263 |
if test "$as_root"; then set -- sudo -E -u postgres "$@"; fi
|
|
263 |
if test "$as_root"; then set -- $sudo -u postgres "$@"; fi
|
|
264 | 264 |
|
265 | 265 |
command "time" "$@" |
266 | 266 |
} |
Also available in: Unified diff
lib/sh/db.sh: pg_cmd(): $as_root: use $sudo