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
This commit is contained in:
Pavel Cahyna 2021-06-30 18:20:25 +02:00
parent 7a37e9fcf4
commit 036a47da3d

View File

@ -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