Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
65a0b9c1
Commit
65a0b9c1
authored
Aug 15, 2014
by
Till Brehm
Browse files
Added .cache dir to removed directories list of shell users.
parent
36633e70
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/shelluser_base_plugin.inc.php
View file @
65a0b9c1
...
...
@@ -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
);
}
...
...
server/plugins-available/shelluser_jailkit_plugin.inc.php
View file @
65a0b9c1
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment