@@ -57,7 +57,8 @@ public function onRunJob() {
5757
5858 $ server_config = $ app ->getconf ->get_server_config ($ conf ['server_id ' ], 'server ' );
5959 if (isset ($ server_config ['migration_mode ' ]) && $ server_config ['migration_mode ' ] == 'y ' ) {
60- $ app ->log ('Migration mode active, not running Jailkit updates. ' , LOGLEVEL_DEBUG );
60+ //$app->log('Migration mode active, not running Jailkit updates.', LOGLEVEL_DEBUG);
61+ print "Migration mode active, not running Jailkit updates. \n" ;
6162 }
6263
6364 $ update_options = array ( 'allow_hardlink ' , );
@@ -82,7 +83,8 @@ public function onRunJob() {
8283 return ;
8384 }
8485
85- $ app ->log ('Beginning jailkit maintenance for domain ' .$ rec ['domain ' ].' at ' .$ rec ['document_root ' ], LOGLEVEL_DEBUG );
86+ //$app->log('Beginning jailkit maintenance for domain '.$rec['domain'].' at '.$rec['document_root'], LOGLEVEL_DEBUG);
87+ print 'Beginning jailkit maintenance for domain ' .$ rec ['domain ' ].' at ' .$ rec ['document_root ' ]."\n" ;
8688
8789 // check for any shell_user using this jail
8890 $ shell_user_inuse = $ app ->db ->queryOneRecord ('SELECT shell_user_id FROM `shell_user` WHERE `parent_domain_id` = ? AND `chroot` = ? AND `server_id` = ? ' , $ rec ['domain_id ' ], 'jailkit ' , $ conf ['server_id ' ]);
@@ -102,7 +104,8 @@ public function onRunJob() {
102104 $ app ->system ->update_jailkit_chroot ($ rec ['document_root ' ], $ sections , $ programs , $ update_options );
103105 } else {
104106 if ($ rec ['delete_unused_jailkit ' ] == 'y ' ) {
105- $ app ->log ('Removing unused jail: ' .$ rec ['document_root ' ], LOGLEVEL_DEBUG );
107+ //$app->log('Removing unused jail: '.$rec['document_root'], LOGLEVEL_DEBUG);
108+ print 'Removing unused jail: ' .$ rec ['document_root ' ]."\n" ;
106109 $ app ->system ->delete_jailkit_chroot ($ rec ['document_root ' ]);
107110 }
108111 }
0 commit comments