Skip to content

Commit f424031

Browse files
committed
jailkit cron: always chown/chmod home dir
1 parent c40198b commit f424031

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)