Skip to content

Commit 11deb6d

Browse files
committed
Fixed problem when jailkit user is inserted.
1 parent 07bdbdf commit 11deb6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

server/plugins-available/shelluser_jailkit_plugin.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ function insert($event_name,$data) {
8585
$this->app = $app;
8686
$this->jailkit_config = $app->getconf->get_server_config($conf["server_id"], 'jailkit');
8787

88-
$command .= 'usermod -U '.escapeshellcmd($data['new']['username']);
89-
exec($command);
90-
9188
$this->_update_website_security_level();
92-
93-
$this->_add_jailkit_user();
9489

9590
$this->_setup_jailkit_chroot();
9691

92+
$this->_add_jailkit_user();
93+
94+
$command .= 'usermod -U '.escapeshellcmd($data['new']['username']);
95+
exec($command);
96+
9797
$this->_update_website_security_level();
9898
}
9999

0 commit comments

Comments
 (0)