From 94411b6a3f96ada75478b35ebfa6472abe725374 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 22 Apr 2008 10:31:49 -0400
Subject: [PATCH] - The Server ini is now loaded from a file templet - Fixed a bug were DNS SOA records could not be deleted.

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

diff --git a/install/install.php b/install/install.php
index 8384d41..d3b854c 100644
--- a/install/install.php
+++ b/install/install.php
@@ -124,6 +124,9 @@
 	
 	//* Create the mysql database
 	$inst->configure_database();
+	
+	//* Insert the Server record into the database
+	$inst->add_database_server_record();
 
 	//* Configure postfix
 	$inst->configure_postfix();
@@ -191,12 +194,16 @@
 }else{
 
 	//** Get Server ID
-	$conf['server_id'] = $inst->free_query('Unique Numeric ID of the server','1');
+	// $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') {
 		//* 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();
 	}
 	
 	if(strtolower($inst->simple_query('Configure Mail', array('y','n') ,'y') ) == 'y') {

--
Gitblit v1.9.1