Skip to content

Commit 0f5973a

Browse files
author
vogelor
committed
Fixed a bug when the server we want to update is a "real" Server with only VE's in it (and nothing else in his DB)
1 parent 82927e7 commit 0f5973a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install/lib/update.lib.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ function prepareDBDump() {
4949
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']);
5050
}
5151

52-
if(filesize('existing_db.sql') < 30000) die('Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql');
52+
/*
53+
* If we have a server with nothing in it except VE's then the database of thie server is empty.
54+
* so the following line will no longer work!
55+
*/
56+
//if(filesize('existing_db.sql') < 30000) die('Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql');
5357

5458
// create a backup copy of the ispconfig database in the root folder
5559
$backup_db_name = '/root/ispconfig_db_backup_'.@date('Y-m-d_h-i').'.sql';

0 commit comments

Comments
 (0)