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

SF.net SVN: ledger-smb: [197] trunk/ledger-smb.conf.default



Revision: 197
          http://svn.sourceforge.net/ledger-smb/?rev=197&view=rev
Author:   christopherm
Date:     2006-10-10 07:22:38 -0700 (Tue, 10 Oct 2006)

Log Message:
-----------
getting parameters ready for central db setup. GLOBALDHB is the shared/global connection resource to the central db

Modified Paths:
--------------
    trunk/ledger-smb.conf.default

Modified: trunk/ledger-smb.conf.default
===================================================================
--- trunk/ledger-smb.conf.default	2006-10-10 14:03:43 UTC (rev 196)
+++ trunk/ledger-smb.conf.default	2006-10-10 14:22:38 UTC (rev 197)
@@ -1,5 +1,16 @@
-use vars qw($userspath $spool $memberfile $templates $sendmail $language $sid $latex %printer $gzip);
+use vars qw($userspath $spool $memberfile $templates $sendmail $language $sid $latex %printer $gzip $GLOBALDBH);
 
+#################################
+# Global database parameters
+#################################
+# These parameters *must* be set correctly
+# for LedgerSMB >= 1.2 to work
+my $globalDBConnect = 'dbi:Pg:dbname=ledgersmb;host=localhost;port=5432';
+my $globalUserName = "ledgersmb";
+my $globalPassword = "set me to correct password";
+
+$GLOBALDBH = DBI->connect($globalDBConnect, $globalDBUserName, $globalDBPassword); 
+
 # path to user configuration files
 $userspath = "users";
 
@@ -18,6 +29,10 @@
 # set language for login and admin
 $language = "";
 
+# Maximum number of invoices that can be printed on a check
+$check_max_invoices = 5;
+
+
 # if you have latex installed set to 1
 $latex = 1;
 
@@ -30,15 +45,11 @@
 $gzip = "gzip -S .gz";
 
 # if the server can't find gzip, latex, dvips or pdflatex, add the path
-$ENV{PATH} .= ":/usr/local/bin";
+$ENV{PATH} .= ":/usr/local/bin:/usr/local/pgsql/bin";
 
 # on mac os X using Fink's Perl libs, add the path
 #$ENV{PERL5LIB} .= ":/sw/lib/perl5";
 
-# DB2, Default dataset is expected to be LEDGER
-#$ENV{DB2INSTANCE} = "db2inst1";
-#$ENV{DB2_HOME} = "/opt/IBM/db2/V8.1/";
 
-
 1;
 


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