Skip to content

Commit 4058fa9

Browse files
committed
Fix issue #6633
Jailkit update on every cron change Patch by WHO
1 parent 3f1f82c commit 4058fa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/cron_jailkit_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function delete($event_name, $data) {
240240

241241
function _setup_jailkit_chroot()
242242
{
243-
global $app;
243+
global $app, $conf;
244244

245245
if (isset($this->jailkit_config) && isset($this->jailkit_config['jailkit_hardlinks'])) {
246246
if ($this->jailkit_config['jailkit_hardlinks'] == 'yes') {
@@ -286,7 +286,7 @@ function _setup_jailkit_chroot()
286286
$programs = $this->jailkit_config['jailkit_chroot_app_programs'] . ' '
287287
. $this->jailkit_config['jailkit_chroot_cron_programs'];
288288

289-
if ($update_hash == $parent_domain['last_jailkit_hash']) {
289+
if ($update_hash == $this->parent_domain['last_jailkit_hash']) {
290290
return;
291291
}
292292

0 commit comments

Comments
 (0)