Skip to content

Commit c5c1c9a

Browse files
author
Till Brehm
committed
Fixed #5614 Fix home initialization for Jailkit
1 parent 2ea8f75 commit c5c1c9a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ function insert($event_name, $data) {
107107
$app->system->web_folder_protection($web['document_root'], false);
108108

109109
//* Home directory of the new shell user
110-
if($data['new']['chroot'] == 'jailkit') {
111-
$homedir = $data['new']['dir'];
112-
} else {
113-
$homedir = $data['new']['dir'].'/home/'.$data['new']['username'];
114-
}
110+
$homedir = $data['new']['dir'].'/home/'.$data['new']['username'];
115111

116112
// Create home base directory if it does not exist
117113
if(!is_dir($data['new']['dir'].'/home')){

0 commit comments

Comments
 (0)