Skip to content

Commit a2cb144

Browse files
committed
Added temporary fix for: FS#1181 - Deleting Last Jailkit SSH User Deletes Entire Website.
1 parent 44954e9 commit a2cb144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/shelluser_jailkit_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function delete($event_name,$data) {
160160
//exec('rm -rf '.$data['old']['dir'].$jailkit_chroot_userhome);
161161

162162
if(@is_dir($data['old']['dir'].$jailkit_chroot_userhome)) {
163-
$command = 'userdel -f -r';
163+
$command = 'userdel -f';
164164
$command .= ' '.escapeshellcmd($data['old']['username']);
165165
exec($command);
166166
$app->log("Jailkit Plugin -> delete chroot home:".$data['old']['dir'].$jailkit_chroot_userhome,LOGLEVEL_DEBUG);

0 commit comments

Comments
 (0)