Skip to content

Commit 4e95e60

Browse files
committed
Fixed #6633 Code Error - Jailkit Update on every cron change
1 parent 31a42f8 commit 4e95e60

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
@@ -229,7 +229,7 @@ function delete($event_name, $data) {
229229

230230
function _setup_jailkit_chroot()
231231
{
232-
global $app;
232+
global $app, $conf;
233233

234234
if (isset($this->jailkit_config) && isset($this->jailkit_config['jailkit_hardlinks'])) {
235235
if ($this->jailkit_config['jailkit_hardlinks'] == 'yes') {
@@ -293,7 +293,7 @@ function _setup_jailkit_chroot()
293293
$programs = $this->jailkit_config['jailkit_chroot_app_programs'] . ' '
294294
. $this->jailkit_config['jailkit_chroot_cron_programs'];
295295

296-
if ($update_hash == $parent_domain['last_jailkit_hash']) {
296+
if ($update_hash == $this->parent_domain['last_jailkit_hash']) {
297297
return;
298298
}
299299

0 commit comments

Comments
 (0)