Revision 14681
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/db.sh | ||
---|---|---|
273 | 273 |
use_pg |
274 | 274 |
log_local |
275 | 275 |
log-- |
276 |
if test "$server"; then local PGHOST="$server"; export PGHOST; fi |
|
277 |
if test "$user"; then local PGUSER="$user"; export PGUSER; fi |
|
278 |
if test "$password"; then local PGPASSWORD="$password"; log++ export PGPASSWORD;fi |
|
279 |
if test "$database"; then local PGDATABASE="$database"; export PGDATABASE;fi |
|
276 |
if test "$server"; then local PGHOST="$server"; fi |
|
277 |
if test "$user"; then local PGUSER="$user"; fi |
|
278 |
if test "$password"; then local PGPASSWORD="$password"; fi |
|
279 |
if test "$database"; then local PGDATABASE="$database"; fi |
|
280 |
# log vars on same line to avoid clutter |
|
281 |
export PGHOST PGUSER PGDATABASE; log++ export PGPASSWORD |
|
280 | 282 |
log++ |
281 | 283 |
|
282 | 284 |
time if test "$as_root"; then sudo -u postgres "$@"; else command "$@"; fi |
Also available in: Unified diff
lib/sh/db.sh: pg_cmd(): log vars on same line to avoid clutter