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

SF.net SVN: ledger-smb:[3158] trunk/LedgerSMB/Initiate.pm



Revision: 3158
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3158&view=rev
Author:   einhverfr
Date:     2011-05-22 21:58:20 +0000 (Sun, 22 May 2011)

Log Message:
-----------
Ian's patch 2945458

Modified Paths:
--------------
    trunk/LedgerSMB/Initiate.pm

Modified: trunk/LedgerSMB/Initiate.pm
===================================================================
--- trunk/LedgerSMB/Initiate.pm	2011-05-22 20:47:10 UTC (rev 3157)
+++ trunk/LedgerSMB/Initiate.pm	2011-05-22 21:58:20 UTC (rev 3158)
@@ -356,6 +356,11 @@
         if ($ENV{PGDATABASE} eq 'template1'){
            $form->error('No database specified!');
         }
+        $ENV{PGDATABASE} = $form->{database};
+        $ENV{PGHOST}     = $form->{dbhost};
+        $ENV{PGPORT}     = $form->{dbport};
+        $ENV{PGUSER}     = $form->{username};
+        $ENV{PGPASSWORD} = $form->{password};
 	system("psql < $dbfile");
 }
 


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