Skip to content

Commit 336b838

Browse files
author
Marius Burkard
committed
- further jailkit cron improvements
1 parent b6936b3 commit 336b838

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

server/lib/classes/cron.d/500-jkupdate.inc.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class cronjob_jkupdate extends cronjob {
3232

3333
// job schedule
34-
protected $_schedule = '45 22 * * *';
34+
protected $_schedule = '45 22 3 * *';
3535
protected $_run_at_new = true;
3636

3737
/* this function is optional if it contains no custom code */
@@ -70,8 +70,11 @@ public function onRunJob() {
7070
return;
7171
}
7272

73-
//$app->log('Running jailkit init for '.$site['document_root']);
74-
//if($jailkit_sections != '') $this->run_jk_init($site['document_root'], $jailkit_sections);
73+
//* Protect web folders
74+
$app->system->web_folder_protection($site['document_root'], false);
75+
76+
$app->log('Running jailkit init for '.$site['document_root']);
77+
if($jailkit_sections != '') $this->run_jk_init($site['document_root'], $jailkit_sections);
7578

7679
$app->log('Running jailkit updates for '.$site['document_root']);
7780

@@ -95,6 +98,9 @@ public function onRunJob() {
9598
@symlink('/opt/php-'.$matches[1].'/bin/php', $site['document_root'].'/usr/bin/php');
9699
}
97100
}
101+
102+
//* Protect web folders
103+
$app->system->web_folder_protection($site['document_root'], true);
98104
}
99105
}
100106

0 commit comments

Comments
 (0)