[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1042] branches/1.2/LedgerSMB/AM.pm



Revision: 1042
          http://svn.sourceforge.net/ledger-smb/?rev=1042&view=rev
Author:   tetragon
Date:     2007-04-09 08:56:05 -0700 (Mon, 09 Apr 2007)

Log Message:
-----------
Repoint backups to the correct database

Modified Paths:
--------------
    branches/1.2/LedgerSMB/AM.pm

Modified: branches/1.2/LedgerSMB/AM.pm
===================================================================
--- branches/1.2/LedgerSMB/AM.pm	2007-04-09 01:47:34 UTC (rev 1041)
+++ branches/1.2/LedgerSMB/AM.pm	2007-04-09 15:56:05 UTC (rev 1042)
@@ -1617,7 +1617,7 @@
 	my $suffix = "";
 
 	if ($form->{media} eq 'email') {
-		print OUT qx(PGPASSWORD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname);
+		print OUT qx(PGPASSWORD="$myconfig->{dbpasswd}" pg_dump -U $myconfig->{dbuser} -h $myconfig->{dbhost} -Fc -p $myconfig->{dbport} $myconfig->{dbname});
 		close OUT;
 		use LedgerSMB::Mailer;
 		$mail = new Mailer;
@@ -1644,7 +1644,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 qx(PGPASSWORD="$globalDBPassword" pg_dump -U $globalDBUserName -h $globalDBhost -Fc -p $globalDBport $globalDBname);
+		print OUT qx(PGPASSWORD="$myconfig->{dbpasswd}" pg_dump -U $myconfig->{dbuser} -h $myconfig->{dbhost} -Fc -p $myconfig->{dbport} $myconfig->{dbname});
 	}
 
 	unlink "$tmpfile";


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.