File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -203,16 +203,19 @@ function _write_crontab() {
203203 }
204204
205205 $ log_target = ">/dev/null 2>&1 " ;
206+ $ log_wget_target = '/dev/null ' ;
207+ $ log_root = '' ;
206208 if ($ job ['log ' ] == 'y ' ) {
207- $ log_root = '' ;
208- if ( $ job [ ' type ' ] != ' chrooted ' ) $ log_root = $ this -> parent_domain [ ' document_root ' ] . '/log ' ;
209+ if ( $ job [ ' type ' ] != ' chrooted ' ) $ log_root = $ this -> parent_domain [ ' document_root ' ] ;
210+ $ log_root .= '/log ' ;
209211
210- $ log_target = '> ' . $ log_root . '/cron.log 2> ' . $ log_root . '/cron_error.log ' ;
212+ $ log_target = '>> ' . $ log_root . '/cron.log 2>> ' . $ log_root . '/cron_error.log ' ;
213+ $ log_wget_target = $ log_root . '/cron_wget.log ' ;
211214 }
212215
213216 $ command .= "\t{$ this ->parent_domain ['system_user ' ]}" ; //* running as user
214217 if ($ job ['type ' ] == 'url ' ) {
215- $ command .= "\t{$ cron_config ['wget ' ]} -q -t 1 -T 7200 -O /dev/null " . escapeshellarg ($ job ['command ' ]) . " " . $ log_target ;
218+ $ command .= "\t{$ cron_config ['wget ' ]} -q -t 1 -T 7200 -O " . $ log_wget_target . " " . escapeshellarg ($ job ['command ' ]) . " " . $ log_target ;
216219 } else {
217220 $ web_root = '' ;
218221 if ($ job ['type ' ] == 'chrooted ' ) {
You can’t perform that action at this time.
0 commit comments