From e29b7e69171ae4faa116f00f0d55e6bf9a6438a4 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 24 Oct 2006 16:28:46 +0000 Subject: 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 --- LedgerSMB/Sysconfig.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3