Correction in custom parity schedule

This commit is contained in:
bergware
2018-09-15 09:09:32 +02:00
parent 21744e426a
commit 869d04306f

View File

@@ -30,7 +30,7 @@ if (isset($_POST['#apply'])) {
case 'W2' : $dotm = '8-14'; break;
case 'W3' : $dotm = '15-21'; break;
case 'W4' : $dotm = '22-28'; break;
case 'WL' : $dotm = '*'; $term = '[[ $(date +%e -d +7days) -le 7 ]] && '; break;
case 'WL' : $dotm = '22-31'; $term = '[[ $(date +%e -d +7days) -le 7 ]] && '; break;
}
$cron = "# Generated parity check schedule:\n$time $dotm $month $day $term/usr/local/sbin/mdcmd check $write &> /dev/null || :\n\n";
}