Commit 9818bf95 authored by mig5's avatar mig5 Committed by mig5

#590506 - make mysqldump file non-readable by webserver while executing backup

parent 32dca23c
......@@ -61,6 +61,11 @@ password=%s
if (!$result && !drush_get_option('force', false)) {
drush_set_error('PROVISION_BACKUP_FAILED', dt("Could not generate database backup from mysqldump"));
}
else {
provision_path("chmod", 'sites/' . escapeshellcmd($url) . '/database.sql', 0600,
dt('Changed permissions of database dump to be non-readable by webserver'),
dt('Could not change permissions of database dump to be non-readable by webserver'));
}
}
function drush_provision_mysql_pre_provision_backup_rollback($url = NULL) {
......
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