add cronjob
This commit is contained in:
@@ -15,4 +15,12 @@ class clamav_cd::main::config (
|
|||||||
unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"',
|
unless => '/usr/sbin/getsebool antivirus_can_scan_system | grep --quiet "on"',
|
||||||
path => ['/usr/sbin', '/bin'],
|
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,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user