From 5db034fd3d837f9f6eeea250624e51f72567d8d2 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 05 Jan 2012 07:33:37 -0500
Subject: [PATCH] Added options to installer to set the ispconfig database username and password in expert mode.

---
 install/install.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/install/install.php b/install/install.php
index 78a5fb3..5b60a72 100644
--- a/install/install.php
+++ b/install/install.php
@@ -126,6 +126,11 @@
 	$tmp_mysql_server_admin_user = $inst->free_query('MySQL root username', $conf['mysql']['admin_user']);
 	$tmp_mysql_server_admin_password = $inst->free_query('MySQL root password', $conf['mysql']['admin_password']);
 	$tmp_mysql_server_database = $inst->free_query('MySQL database to create', $conf['mysql']['database']);
+	if($install_mode == 'expert') {
+		swriteln("The next two questions are about the internal ISPConfig database user and password. It is recommended to accept the defaults which is 'ispconfig' as username and a random password.\n");
+		$conf['mysql']['ispconfig_user'] = $inst->free_query('ISPConfig mysql database username', $conf['mysql']['ispconfig_user']);
+		$conf['mysql']['ispconfig_password'] = $inst->free_query('ISPConfig mysql database password', $conf['mysql']['ispconfig_password']);
+	}
 	$tmp_mysql_server_charset = $inst->free_query('MySQL charset', $conf['mysql']['charset']);
 	
 	//* Initialize the MySQL server connection

--
Gitblit v1.9.1