From 036a47da3dc4beb1d3eec4471144aa90a3c33e7c Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Wed, 30 Jun 2021 18:20:25 +0200 Subject: [PATCH] Port fix for bz1729499 from RHEL 8 Modify the cron command to avoid an e-mail with error message after RaR is installed but not properly configured when the cron command is triggered for the first time Related: rhbz1973448 --- rear.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rear.cron b/rear.cron index b0fbf27..b4dbce1 100644 --- a/rear.cron +++ b/rear.cron @@ -1,4 +1,4 @@ # cronjob for ReaR # periodically check if disk layout has changed and update # the rescue image -30 1 * * * root /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue +30 1 * * * root test -f /var/lib/rear/layout/disklayout.conf && /usr/sbin/rear checklayout || /usr/sbin/rear mkrescue