From 175aceea1eccbfefb566ef93677c75b8fb87d2a3 Mon Sep 17 00:00:00 2001 From: tangyuchen Date: Mon, 24 Apr 2023 09:55:18 +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 144eab5..dddc0c4 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,6 +1,6 @@ Name: mdadm Version: 4.1 -Release: rc2.0.13 +Release: rc2.0.14 Summary: The software RAID arrays user manage tools License: GPLv2+ URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/ @@ -93,6 +93,9 @@ install -d -m 710 %{buildroot}/var/run/mdadm/ %{_mandir}/man*/* %changelog +* Mon Apr 24 2023 tangyuchen - 4.1-rc2.0.14 +- fix crond cannot find command mdadm + * Fri Jan 6 2023 Zhiqiang Liu - 4.1-rc2.0.13 - fix Null deference in super_by_fd diff --git a/mdcheck-cron b/mdcheck-cron index e93aa90..fcc60bd 100644 --- a/mdcheck-cron +++ b/mdcheck-cron @@ -1,2 +1,4 @@ # Run the mdcheck script once on every Saturday for 5 hours +SHELL=/usr/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin 0 0 * * 6 root /usr/sbin/mdcheck --duration "5 hours" -- Gitee