From c796b615b8806d4026db838f8edfb3bbc03beba5 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Tue, 04 May 2010 12:36:48 -0400
Subject: [PATCH] redo changes of the installer because of some sophisticated systems

---
 install/update.php |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/install/update.php b/install/update.php
index d37c2a0..59566b4 100644
--- a/install/update.php
+++ b/install/update.php
@@ -232,13 +232,12 @@
 $inst->configure_database();
 
 if($conf['mysql']['master_slave_setup'] == 'y') {
-	/*
-	 * Because of security updates and because of new functions in den new Version it is
-	 * better to ALWAYS reconfigure the rights and never ask!
-	 * (for example if we add some new tables to the monitor and the old rights don't have the
-	 * permission to read this tables the monitor always returns a error)
-	 */
-	$inst->grant_master_database_rights();
+	//** Update master database rights
+	$reconfigure_master_database_rights_answer = $inst->simple_query('Reconfigure Permissions in master database?', array('yes','no'),'no');
+
+	if($reconfigure_master_database_rights_answer == 'yes') {
+		$inst->grant_master_database_rights();
+	}
 }
 
 //** empty all databases

--
Gitblit v1.9.1