diff --git a/clamav-unofficial-sigs.cron b/clamav-unofficial-sigs.cron index 9c06446..0b68f62 100644 --- a/clamav-unofficial-sigs.cron +++ b/clamav-unofficial-sigs.cron @@ -26,7 +26,7 @@ # 60 - 600 seconds. To Adjust the cron values, edit your configs and run # bash clamav-unofficial-sigs.sh --install-cron to generate a new file. MAILTO=root -14 * * * * root [ -x /usr/sbin/clamav-unofficial-sigs.sh ] && sleep $[ 0x`hostid` % 55 ]m && /usr/sbin/clamav-unofficial-sigs.sh +# % character must be escaped in crontab +14 * * * * root sleep $(( 0x0`hostid` \% 3000 )) && /usr/sbin/clamav-unofficial-sigs.sh # https://eXtremeSHOK.com ###################################################### - diff --git a/clamav-unofficial-sigs.spec b/clamav-unofficial-sigs.spec index b26285b..e25acd0 100644 --- a/clamav-unofficial-sigs.spec +++ b/clamav-unofficial-sigs.spec @@ -9,7 +9,7 @@ %endif Name: clamav-unofficial-sigs Version: 7.0.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Scripts to download unofficial clamav signatures Group: Applications/System License: BSD @@ -109,6 +109,9 @@ rm -rf %{buildroot} %{_mandir}/man*/%{name}* %changelog +* Wed Feb 19 2020 Ján ONDREJ (SAL) - 7.0.1-4 +- Backslash percent character in cron script + * Thu Feb 13 2020 Ján ONDREJ (SAL) - 7.0.1-3 - Make cron script as config(noreplace) (bz#1786860) - Implement random delay before running update script from cron