summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-24 16:28:46 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-24 16:28:46 +0000
commite29b7e69171ae4faa116f00f0d55e6bf9a6438a4 (patch)
treeed8494a9b0a109b97dc20d70bef495b8997ff679 /LedgerSMB
parent2c4d43494bb6329bbb24a8355c8d0deaa9ba0ccb (diff)
Now Sysconfig will allow ledger-smb.conf variables to override its settings.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@290 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Sysconfig.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm
index 5b67b690..85d9b359 100644
--- a/LedgerSMB/Sysconfig.pm
+++ b/LedgerSMB/Sysconfig.pm
@@ -62,6 +62,9 @@ my $globalDBConnect = undef;
my $globalUserName = undef;
my $globalPassword = undef;
-
+eval { require "ledger-smb.conf"; };
+if ($@){
+ print STDERR "Parsing ledger-smb.conf failed: $@";
+}
1;