Closed whereismyjetpack closed 4 years ago
Thanks for the review. I've pushed up the required changes, please let me know if you need anything else.
Should be all fixed up now. Thanks!
I've committed the changes to docs. Thanks!
Actually, you make a good point regarding the el6 version, which I didn't realize initially. The earlier bash version of yum-cron in el6 used date +%w
which indeed returns 0 for Sunday. After all, in crontab
, day of week also has 0 for Sunday.
That said, I would rather lean towards making yum-cron
compatible with both the el6 version and crontab
. Could you maybe update the patch accordingly? One way is replacing weekday()
with isoweekday() % 7
which should give you the original range 0..6 where 0 is Sunday.
Thank you again!
@whereismyjetpack Is there a possibility of this getting picked up again and merged? If not I may open my own PR with your changes + @dmnks's requested ones. Pretty basic functionality that would be nice to have
In previous versions of yum_cron we had available to us the days_of_week parameter. This patch reintroduces that behavior, and adds the default days_of_week setting in the sample configuration files.