Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
b0f7dc13
Commit
b0f7dc13
authored
Sep 14, 2017
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restrict permissions for db-dump during prepareDBDump
parent
0722ce32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
install/lib/update.lib.php
install/lib/update.lib.php
+2
-0
No files found.
install/lib/update.lib.php
View file @
b0f7dc13
...
...
@@ -59,6 +59,8 @@ function prepareDBDump() {
system
(
"mysqldump -h "
.
escapeshellarg
(
$conf
[
'mysql'
][
'host'
])
.
" -u "
.
escapeshellarg
(
$conf
[
'mysql'
][
'admin_user'
])
.
" -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql "
.
$conf
[
'mysql'
][
'database'
]);
}
chmod
(
'existing_db.sql'
,
0400
);
chown
(
'existing_db.sql'
,
'root'
);
/*
* If we have a server with nothing in it except VE's then the database of thie server is empty.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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