Merge branch 'jenkins-build-14' into 'master'
Auto-merge for build 14 See merge request puppet/clamav_cd!11
This commit is contained in:
@@ -113,7 +113,15 @@ clamav_cd.
|
||||
15
|
||||
16
|
||||
17
|
||||
18</pre>
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 7</span>
|
||||
@@ -129,6 +137,14 @@ 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,
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user