...
This commit is contained in:
parent
8d30c9fb42
commit
4312dd5de6
@ -50,11 +50,11 @@
|
|||||||
if(function_exists('system')) {
|
if(function_exists('system')) {
|
||||||
$crontab = tempnam($config['tmp'], 'tinyboard-rrdtool');
|
$crontab = tempnam($config['tmp'], 'tinyboard-rrdtool');
|
||||||
file_write($crontab, $job);
|
file_write($crontab, $job);
|
||||||
@system('crontab ' . escapeshellarg($crontab) . '; echo $?', $ret);
|
@system('crontab ' . escapeshellarg($crontab), $ret);
|
||||||
unlink($crontab);
|
unlink($crontab);
|
||||||
|
|
||||||
if($ret === 0)
|
if($ret === 0)
|
||||||
return; // it seems to install okay?
|
return ''; // it seems to install okay?
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<h2>I couldn\'t install the crontab!</h2>' .
|
return '<h2>I couldn\'t install the crontab!</h2>' .
|
||||||
|
Loading…
Reference in New Issue
Block a user