add cronjob

This commit is contained in:
Arne Teuke
2025-06-08 15:05:28 +02:00
parent 92e3fffef2
commit 44792d71c1

View File

@@ -15,4 +15,12 @@ class clamav_cd::main::config (
unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"',
path => ['/usr/sbin', '/bin'],
}
# create a cron job to run a daily scan
cron { 'clamscan':
command => '/bin/clamscan -r / >> /var/log/clamav/daily-scan.log',
user => 'root',
hour => 2,
minute => 0,
}
}