File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
server/lib/classes/cron.d Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ public function onRunJob() {
4242 $ jailkit_config = $ app ->getconf ->get_server_config ($ conf ['server_id ' ], 'jailkit ' );
4343 if (isset ($ this ->jailkit_config ) && isset ($ this ->jailkit_config ['jailkit_hardlinks ' ])) {
4444 if ($ this ->jailkit_config ['jailkit_hardlinks ' ] == 'yes ' ) {
45- $ options = array ('hardlink ' );
45+ $ global_options = array ('hardlink ' );
4646 } elseif ($ this ->jailkit_config ['jailkit_hardlinks ' ] == 'no ' ) {
47- $ options = array ();
47+ $ global_options = array ();
4848 }
4949 } else {
50- $ options = array ('allow_hardlink ' );
50+ $ global_options = array ('allow_hardlink ' );
5151 }
5252
5353 // force all jails to update every 2 weeks
@@ -74,6 +74,8 @@ public function onRunJob() {
7474 continue ;
7575 }
7676
77+ $ options = $ global_options ;
78+
7779 //$app->log('Beginning jailkit maintenance for domain '.$rec['domain'].' at '.$rec['document_root'], LOGLEVEL_DEBUG);
7880 print 'Beginning jailkit maintenance for domain ' .$ rec ['domain ' ].' at ' .$ rec ['document_root ' ]."\n" ;
7981
You can’t perform that action at this time.
0 commit comments