File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ' ;
You can’t perform that action at this time.
0 commit comments