Skip to content

Commit 2061575

Browse files
committed
Set db dump filesize check from 60 KB to 30 KB.
1 parent 899771d commit 2061575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
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']);
150150
}
151151

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');
152+
if(filesize('existing_db.sql') < 30000) die('Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql');
153153

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

0 commit comments

Comments
 (0)