Commit b0f7dc13 authored by Florian Schaal's avatar Florian Schaal
Browse files

restrict permissions for db-dump during prepareDBDump

parent 0722ce32
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment