Commit f424031f authored by Jesse Norell's avatar Jesse Norell
Browse files

jailkit cron: always chown/chmod home dir

parent c40198b1
......@@ -339,10 +339,11 @@ class cron_jailkit_plugin {
if(!is_dir($this->parent_domain['document_root'].$jailkit_chroot_userhome)) {
$app->system->mkdir($this->parent_domain['document_root'].$jailkit_chroot_userhome, 0750, true);
$app->system->chown($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_user']);
$app->system->chgrp($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_group']);
}
$app->system->chown($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_user']);
$app->system->chgrp($this->parent_domain['document_root'].$jailkit_chroot_userhome, $this->parent_domain['system_group']);
}
function _get_home_dir($username)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment