From bc4699ca64d073fb9aa8516694d588353e2d770c Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Mon, 12 Nov 2007 14:43:09 -0600 Subject: [PATCH] Changes to add dbms type and port & rename db vars for multi-dbms Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- etc/koha-conf.xml | 13 +++++++++---- rewrite-config.PL | 10 ++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml index 43687f5154..93d46d9a53 100644 --- a/etc/koha-conf.xml +++ b/etc/koha-conf.xml @@ -1,3 +1,4 @@ + @@ -32,11 +33,15 @@ + + - __MYSQL_DB__ - __MYSQL_HOST__ - __MYSQL_USER__ - __MYSQL_PASS__ + __DB_TYPE__ + __DB_NAME__ + __DB_HOST__ + __DB_PORT__ + __DB_USER__ + __DB_PASS__ biblios 1 authorities diff --git a/rewrite-config.PL b/rewrite-config.PL index 3c875a96bd..2b8bf9c479 100644 --- a/rewrite-config.PL +++ b/rewrite-config.PL @@ -72,10 +72,12 @@ $prefix = $ENV{'PREFIX'} || "/usr"; "__BASE_DIR__" => ($ENV{'INSTALLSITELIB'} || sprintf($prefix."/lib/perl5/site_perl/%vd",$^V))."/koha", "__CGI_DIR__" => $prefix."/lib/cgi-bin/koha", "__LOG_DIR__" => "/var/log", - "__MYSQL_DB__" => "koha", - "__MYSQL_HOST__" => $myhost, - "__MYSQL_PASS__" => "katikoan", - "__MYSQL_USER__" => "kohaadmin", + "__DB_TYPE__" => "mysql", + "__DB_NAME__" => "koha", + "__DB_HOST__" => $myhost, + "__DB_PORT__" => "3306", + "__DB_USER__" => "kohaadmin", + "__DB_PASS__" => "katikoan", "__PREFIX__" => $prefix, "__WEBMASTER_EMAIL__" => 'webmaster@'.$mydomain, "__WEBSERVER_DOMAIN__" => $mydomain, -- 2.39.5