mmz-srf / puppet-rkhunter

Archived in Favor of: https://github.com/voxpupuli/puppet-rkhunter - Manage rkhunter installation and configuration with Puppet
Apache License 2.0
4 stars 18 forks source link

Cron command not working #7

Closed trevorrea closed 10 years ago

trevorrea commented 10 years ago

Hi,

The $cron_cmd in cron.pp is incorrect. It gives this error message:-

"/usr/bin/expr: syntax error /bin/sleep: invalid time interval ‘m’ Try '/bin/sleep --help' for more information."

Could you replace it with this please?

$cron_cmd = "/bin/sleep $((RANDOM%${minutes_random}))m; rkhunter --cronjob --rwo --syslog --update > /var/log/rkhunter_warnings.log"

Thanks,

Trevor

mms-gianni commented 10 years ago

I also prefer your solution. I'll change that to your Version. I'm also a bit unhappy with the log path too.

trevorrea commented 10 years ago

Excellent thank you. Could you also perhaps merge the fix for the typo in "mail_on_wanring" into master and create a new release?

Thanks, Trevor

mms-gianni commented 10 years ago

enjoy the release v0.1.3 :package: