From: Chris Nighswonger Date: Mon, 12 Nov 2007 20:43:09 +0000 (-0600) Subject: Changes to add dbms type and port & rename db vars for multi-dbms X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=bc4699ca64d073fb9aa8516694d588353e2d770c Changes to add dbms type and port & rename db vars for multi-dbms Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- diff --git a/etc/koha-conf.xml b/etc/koha-conf.xml index 43687f5..93d46d9 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 3c875a9..2b8bf9c 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,