From ee0e1cc0c6fffc4743a3792bae1e76680916d862 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 29 May 2008 04:56:07 -0400
Subject: [PATCH] Allow a server to join existing installations in expert mode.

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

diff --git a/install/install.php b/install/install.php
index 02912d6..a8b772a 100644
--- a/install/install.php
+++ b/install/install.php
@@ -201,14 +201,15 @@
 	// $conf['server_id'] = $inst->free_query('Unique Numeric ID of the server','1');
 	// Server ID is an autoInc value of the mysql database now
 	
-	if(strtolower($inst->simple_query('Create Database',array('y','n'),'y')) == 'y') {
+	if(strtolower($inst->simple_query('Shall this server join a existing ISPConfig installation? If not, we will create a new database now',array('y','n'),'y')) == 'n') {
 		//* Create the mysql database
 		$inst->configure_database();
 		system('/etc/init.d/mysql restart');
-		
-		//* Insert the Server record into the database
-		$inst->add_database_server_record();
 	}
+		
+	//* Insert the Server record into the database
+	$inst->add_database_server_record();
+
 	
 	if(strtolower($inst->simple_query('Configure Mail', array('y','n') ,'y') ) == 'y') {
 		

--
Gitblit v1.9.1