Permalink
Browse files

Changes to add dbms type and port & rename db vars for multi-dbms

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
  • Loading branch information...
1 parent 2bd724e commit bc4699ca64d073fb9aa8516694d588353e2d770c Chris Nighswonger committed with Joshua Ferraro Nov 12, 2007
Showing with 15 additions and 8 deletions.
  1. +9 −4 etc/koha-conf.xml
  2. +6 −4 rewrite-config.PL
View
@@ -1,3 +1,4 @@
+
<yazgfs>
<!-- [scheme:]host[:port][/databaseName] -->
<!-- scheme: tcp, ssl, unix, http, sru -->
@@ -32,11 +33,15 @@
</serverinfo>
<!-- ADDITIONAL KOHA CONFIGURATION DIRECTIVE -->
+<!-- db_scheme should follow the DBD driver name -->
+<!-- port info: mysql:3306 Pg:5432 (5433 on Debian) -->
<config>
- <database>__MYSQL_DB__</database>
- <hostname>__MYSQL_HOST__</hostname>
- <user>__MYSQL_USER__</user>
- <pass>__MYSQL_PASS__</pass>
+ <db_scheme>__DB_TYPE__</db_scheme>
+ <database>__DB_NAME__</database>
+ <hostname>__DB_HOST__</hostname>
+ <port>__DB_PORT__</port>
+ <user>__DB_USER__</user>
+ <pass>__DB_PASS__</pass>
<biblioserver>biblios</biblioserver>
<biblioservershadow>1</biblioservershadow>
<authorityserver>authorities</authorityserver>
View
@@ -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,

0 comments on commit bc4699c

Please sign in to comment.