Skip to content
Snippets Groups Projects
Commit 65ee3af0 authored by Till Brehm's avatar Till Brehm
Browse files

Change file mode of backups that are made available for download to 0600.

parent f496e926
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ class backup_plugin {
if(file_exists($backup_dir.'/'.$backup['filename']) && file_exists($web['document_root'].'/backup/') && !stristr($backup_dir.'/'.$backup['filename'], '..') && !stristr($backup_dir.'/'.$backup['filename'], 'etc')) {
copy($backup_dir.'/'.$backup['filename'], $web['document_root'].'/backup/'.$backup['filename']);
chgrp($web['document_root'].'/backup/'.$backup['filename'], $web['system_group']);
chmod($web['document_root'].'/backup/'.$backup['filename'],0600);
$app->log('cp '.$backup_dir.'/'.$backup['filename'].' '.$web['document_root'].'/backup/'.$backup['filename'], LOGLEVEL_DEBUG);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment