File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
server/lib/classes/cron.d Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3131class 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
You can’t perform that action at this time.
0 commit comments