We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b8495 commit 423b1d7Copy full SHA for 423b1d7
install/update.php
@@ -149,6 +149,8 @@
149
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']);
150
}
151
152
+if(filesize('existing_db.sql') < 60000) die('Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql');
153
+
154
// create a backup copy of the ispconfig database in the root folder
155
$backup_db_name = '/root/ispconfig_db_backup_'.@date('Y-m-d_h-i').'.sql';
156
copy('existing_db.sql',$backup_db_name);
0 commit comments