Commit 39f51a4c authored by Marius Burkard's avatar Marius Burkard

Merge branch 'stable-3.1' into 'stable-3.1'

restrict permissions for db-dump during prepareDBDump

See merge request !643
parents 0722ce32 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.
......
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