Skip to content

Commit 3d245ca

Browse files
author
Till Brehm
committed
Merge branch 'patch-1' into 'stable-3.1'
Fix bug in plugin when creating new jailkit shell user.… See merge request ispconfig/ispconfig3!728
2 parents f81f3ec + 1f59ad5 commit 3d245ca

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
@@ -399,7 +399,7 @@ function _add_jailkit_user()
399399
if($this->data['new']['active'] != 'y') $shell = '/bin/false';
400400

401401
$app->system->usermod($this->data['new']['username'], 0, 0, $this->data['new']['dir'].'/.'.$jailkit_chroot_userhome, $shell);
402-
$app->system->usermod($this->data['new']['puser'], 0, 0, $this->data['new']['dir'].'/.'.$jailkit_chroot_userhome, '/usr/sbin/jk_chrootsh');
402+
$app->system->usermod($this->data['new']['puser'], 0, 0, $this->data['new']['dir'].'/.'.$jailkit_chroot_puserhome, '/usr/sbin/jk_chrootsh');
403403

404404
$this->app->log("Added jailkit user to chroot with command: ".$command, LOGLEVEL_DEBUG);
405405

0 commit comments

Comments
 (0)