# Use the database access from dbconfig-common.

diff -Naur webissues-server-0.8.4.orig/config/config-template.inc.php webissues-server-0.8.4/config/config-template.inc.php
--- webissues-server-0.8.4.orig/config/config-template.inc.php	2009-03-11 13:51:17.000000000 +0100
+++ webissues-server-0.8.4/config/config-template.inc.php	2009-03-11 13:54:22.000000000 +0100
@@ -3,6 +3,9 @@
 * Configuration file for the WebIssues Server.
 */
 
+// dbconfig-common include for DB settings
+include_once( '/etc/webissues-server/debian-db.php' );
+
 /*
 * Database configuration.
 *
@@ -10,19 +13,19 @@
 */
 
 // database engine, can be: 'mysql', 'mysqli', 'pgsql', 'mssql' or 'firebird'
-$config[ 'db_engine' ]        = 'mysql';
+$config[ 'db_engine' ]        = $dbtype;
 
 // database server, can be: 'host', 'host:port', ':/path/to/socket' or 'host\dbinstance'
-$config[ 'db_host' ]          = 'localhost';
+$config[ 'db_host' ]          = $dbserver;
 
 // database name
-$config[ 'db_database' ]      = 'webissues';
+$config[ 'db_database' ]      = $dbname;
 
 // optional: database user login (if blank, integrated authentication is used)
-$config[ 'db_user' ]          = 'webissues';
+$config[ 'db_user' ]          = $dbuser;
 
 // optional: database user password
-$config[ 'db_password' ]      = 'secret';
+$config[ 'db_password' ]      = $dbpass;
 
 // optional: prefix of table names (e.g. 'xyz_' so all tables will be 'xyz_table_name')
 $config[ 'db_prefix' ]        = '';
@@ -35,7 +38,7 @@
 */
 
 // optional: path of the storage folder (if blank, file storage is disabled)
-$config[ 'storage_path' ]     = 'storage';
+$config[ 'storage_path' ]     = '';
 
 // minimum size of attachments stored as files
 $config[ 'storage_min_size' ] = 4000;
@@ -104,10 +107,10 @@
 */
 
 // optional: logging PHP and SQL errors
-$config[ 'log_errors' ]       = 'log/errors.log';
+$config[ 'log_errors' ]       = '';
 
 // optional: logging cron script runs
-$config[ 'log_cron' ]         = 'log/cron.log';
+$config[ 'log_cron' ]         = '';
 
 // optional: logging commands from the client and server responses (warning: use for debugging only)
 $config[ 'log_commands' ]     = '';
