summaryrefslogtreecommitdiffstats
path: root/config-db
diff options
context:
space:
mode:
authorOliver Tappe2006-09-29 15:23:29 +0200
committerOliver Tappe2006-09-29 15:23:29 +0200
commitcf84c8f53e697f4c2bb24cfbfd5b0cfed720594a (patch)
tree183b8a6189b53834bf5c1d32d8e47783a662dd0e /config-db
parent* changed syntax of config-files to be shell-compatible (diff)
downloadcore-cf84c8f53e697f4c2bb24cfbfd5b0cfed720594a.tar.gz
core-cf84c8f53e697f4c2bb24cfbfd5b0cfed720594a.tar.xz
core-cf84c8f53e697f4c2bb24cfbfd5b0cfed720594a.zip
* fixed problem with 'db-name' not being honoured at all, this fixes
the problem of test-config-demuxer.pl not being able to generate a database of its own (which does not harm the "production" db). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@405 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rw-r--r--config-db/OpenSLX/MetaDB/CSV.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/config-db/OpenSLX/MetaDB/CSV.pm b/config-db/OpenSLX/MetaDB/CSV.pm
index b291e33d..da11f39b 100644
--- a/config-db/OpenSLX/MetaDB/CSV.pm
+++ b/config-db/OpenSLX/MetaDB/CSV.pm
@@ -39,7 +39,8 @@ sub connectConfigDB
if (!defined $dbSpec) {
# build $dbSpec from individual parameters:
my $dbBasepath = $openslxConfig{'db-basepath'};
- my $dbDatadir = $openslxConfig{'db-datadir'} || 'openslxdata-csv';
+ my $dbDatadir = $openslxConfig{'db-datadir'}
+ || "$openslxConfig{'db-name'}-csv";
my $dbPath = "$dbBasepath/$dbDatadir";
mkdir $dbPath unless -e $dbPath;
$dbSpec = "f_dir=$dbPath";