From a728c5320376bb285194e7511be4ff0450664c7d Mon Sep 17 00:00:00 2001 From: tangyuchen Date: Fri, 21 Apr 2023 09:30:50 +0800 Subject: [PATCH] fix crond cannot find command mdadm Signed-off-by: tangyuchen --- mdadm.spec | 5 ++++- mdcheck-cron | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mdadm.spec b/mdadm.spec index 3f220b1..b00b7c2 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 4.1 -Release: 8 +Release: 9 Summary: The software RAID arrays user manage tools License: GPLv2+ URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ @@ -106,6 +106,9 @@ install -d -m 710 %{buildroot}/var/run/mdadm/ %{_mandir}/man*/* %changelog +* Thu Apr 20 2023 tangyuchen - 4.1-9 +- fix crond cannot find command mdadm + * Fri Jan 6 2023 Zhiqiang Liu - 4.1-8 - fix Null dereference in super_by_fd diff --git a/mdcheck-cron b/mdcheck-cron index e93aa90..bd9c586 100644 --- a/mdcheck-cron +++ b/mdcheck-cron @@ -1,2 +1,4 @@ # Run the mdcheck script once on every Saturday for 5 hours +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin 0 0 * * 6 root /usr/sbin/mdcheck --duration "5 hours" -- Gitee