From d40319096f607083b4c3fb458e4e0a7e285f0141 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Wed, 09 Jun 2010 15:26:11 -0400
Subject: [PATCH] Fixed some errors in editing the webdav-user
---
install/lib/update.lib.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/install/lib/update.lib.php b/install/lib/update.lib.php
index 04551dc..dece04d 100644
--- a/install/lib/update.lib.php
+++ b/install/lib/update.lib.php
@@ -49,7 +49,11 @@
system("mysqldump -h '".$conf['mysql']['host']."' -u '".$conf['mysql']['admin_user']."' -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql ".$conf['mysql']['database']);
}
- if(filesize('existing_db.sql') < 30000) die('Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql');
+ /*
+ * If we have a server with nothing in it except VE's then the database of thie server is empty.
+ * so the following line will no longer work!
+ */
+ //if(filesize('existing_db.sql') < 30000) die('Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql');
// create a backup copy of the ispconfig database in the root folder
$backup_db_name = '/root/ispconfig_db_backup_'.@date('Y-m-d_h-i').'.sql';
--
Gitblit v1.9.1