From 50bf16b3d0fb63f19f584d88c518c45afe5cd960 Mon Sep 17 00:00:00 2001 From: christopherm Date: Tue, 10 Oct 2006 14:22:38 +0000 Subject: getting parameters ready for central db setup. GLOBALDHB is the shared/global connection resource to the central db git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@197 4979c152-3d1c-0410-bac9-87ea11338e46 --- ledger-smb.conf.default | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/ledger-smb.conf.default b/ledger-smb.conf.default index f5c77bdd..07a657db 100644 --- a/ledger-smb.conf.default +++ b/ledger-smb.conf.default @@ -1,4 +1,15 @@ -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 @@ $sendmail = "| /usr/sbin/sendmail -t"; # 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 @@ $latex = 1; $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; -- cgit v1.2.3