From 44792d71c1d2a2b9255de3a8680e659200d9f8b9 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sun, 8 Jun 2025 15:05:28 +0200 Subject: [PATCH] add cronjob --- manifests/main/config.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/main/config.pp b/manifests/main/config.pp index 57edcb8..5127292 100644 --- a/manifests/main/config.pp +++ b/manifests/main/config.pp @@ -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, + } }