Commit 65a0b9c1 authored by Till Brehm's avatar Till Brehm

Added .cache dir to removed directories list of shell users.

parent 36633e70
......@@ -263,7 +263,7 @@ class shelluser_base_plugin {
$homedir = $data['old']['dir'];
if(substr($homedir, -1) !== '/') $homedir .= '/';
$files = array('.bash_logout', '.bash_history', '.bashrc', '.profile');
$dirs = array('.ssh');
$dirs = array('.ssh', '.cache');
foreach($files as $delfile) {
if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile);
}
......
......@@ -541,7 +541,7 @@ class shelluser_jailkit_plugin {
// delete dir
if(substr($homedir, -1) !== '/') $homedir .= '/';
$files = array('.bash_logout', '.bash_history', '.bashrc', '.profile');
$dirs = array('.ssh');
$dirs = array('.ssh', '.cache');
foreach($files as $delfile) {
if(is_file($homedir . $delfile) && fileowner($homedir . $delfile) == $userid) unlink($homedir . $delfile);
}
......
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