[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1036] branches/1.2/LedgerSMB/AM.pm
- Subject: SF.net SVN: ledger-smb: [1036] branches/1.2/LedgerSMB/AM.pm
- From: ..hidden..
- Date: Fri, 06 Apr 2007 20:52:04 -0700
Revision: 1036
http://svn.sourceforge.net/ledger-smb/?rev=1036&view=rev
Author: linuxpoet
Date: 2007-04-06 20:52:02 -0700 (Fri, 06 Apr 2007)
Log Message:
-----------
adjust pg_commands to use password if available
Modified Paths:
--------------
branches/1.2/LedgerSMB/AM.pm
Modified: branches/1.2/LedgerSMB/AM.pm
===================================================================
--- branches/1.2/LedgerSMB/AM.pm 2007-04-06 22:45:59 UTC (rev 1035)
+++ branches/1.2/LedgerSMB/AM.pm 2007-04-07 03:52:02 UTC (rev 1036)
@@ -1623,7 +1623,7 @@
my $suffix = "";
if ($form->{media} eq 'email') {
- print OUT `pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname`;
+ print OUT `PGPASSWD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname`;
close OUT;
use LedgerSMB::Mailer;
$mail = new Mailer;
@@ -1650,7 +1650,7 @@
print OUT qq|Content-Type: application/file;\n| .
qq|Content-Disposition: attachment; filename="$myconfig->{dbname}-$form->{dbversion}-$t[5]$t[4]$t[3].sql$suffix"\n\n|;
- print OUT `pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname`;
+ print OUT `PGPASSWD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname`;
}
unlink "$tmpfile";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.