Skip to content

Commit ffce44e

Browse files
author
Marius Burkard
committed
Merge branch '6124-jailkit-cron-set-group-on-home-dir' into 'develop'
Resolve "jailkit cron: set group on home dir" Closes #6124 See merge request ispconfig/ispconfig3!1460
2 parents 9811bb2 + f424031 commit ffce44e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/plugins-available/cron_jailkit_plugin.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,11 @@ function _add_jailkit_user()
339339

340340
if(!is_dir($this->parent_domain['document_root'].$jailkit_chroot_userhome)) {
341341
$app->system->mkdir($this->parent_domain['document_root'].$jailkit_chroot_userhome, 0750, true);
342-
$app->system->chown($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_user']);
343-
$app->system->chgrp($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_group']);
344342
}
345343

344+
$app->system->chown($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_user']);
345+
$app->system->chgrp($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_group']);
346+
346347
}
347348

348349
function _get_home_dir($username)

0 commit comments

Comments
 (0)