From b8d8d3d55cbecb6355659984c9184b2cdb1d1452 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 02 Jul 2007 16:39:06 -0400
Subject: [PATCH] Added mod for server configuration and updated the installer.

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

diff --git a/install/update.php b/install/update.php
index 394ab9b..8a81e32 100644
--- a/install/update.php
+++ b/install/update.php
@@ -42,7 +42,7 @@
 
 include_once("/usr/local/ispconfig/server/lib/config.inc.php");
 $conf_old = $conf;
-unset $conf;
+unset($conf);
 
 // Include the distribution specific installer class library
 // and configuration
@@ -75,7 +75,7 @@
 
 // Delete the old database
 exec("/etc/init.d/mysql stop");
-exec("rm -rf /var/lib/mysql/".$conf["db_database"]);
+if($conf["mysql_server_database"] != '') exec("rm -rf /var/lib/mysql/".$conf["mysql_server_database"]);
 exec("/etc/init.d/mysql start");
 
 // Create the mysql database

--
Gitblit v1.9.1