Merge pull request #185 from Squidly271/patch-2

Prevent cron error entering syslog.
This commit is contained in:
Eric Schultz
2017-10-10 10:45:54 -05:00
committed by GitHub
+2 -2
View File
@@ -50,7 +50,7 @@ if (isset($_POST['#apply'])) {
$month = isset($_POST['month']) ? $_POST['month'] : '*';
$day = isset($_POST['day']) ? $_POST['day'] : '*';
$write = isset($_POST['write']) ? $_POST['write'] : '';
$cron = "# Generated parity check schedule:\n$time $dotm $month $day $term/usr/local/sbin/mdcmd check $write &> /dev/null\n\n";
$cron = "# Generated parity check schedule:\n$time $dotm $month $day $term/usr/local/sbin/mdcmd check $write &> /dev/null || :\n\n";
}
parse_cron_cfg("dynamix", "parity-check", $cron);
@unlink($memory);
@@ -58,4 +58,4 @@ if (isset($_POST['#apply'])) {
file_put_contents($memory, http_build_query($_POST));
$save = false;
}
?>
?>