Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
2061575a
Commit
2061575a
authored
Mar 12, 2010
by
tbrehm
Browse files
Set db dump filesize check from 60 KB to 30 KB.
parent
899771dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/update.php
View file @
2061575a
...
...
@@ -149,7 +149,7 @@ else {
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'
)
<
6
0000
)
die
(
'Possible problem with dumping the database. We will stop here. Please check the file existing_db.sql'
);
if
(
filesize
(
'existing_db.sql'
)
<
3
0000
)
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'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment