clamav: Fix freshclam on CentOS/RedHat 7.
This commit is contained in:
parent
c661a4d8d4
commit
fdddf61049
1 changed files with 13 additions and 0 deletions
|
@ -27,6 +27,19 @@ class clamav($update=true) {
|
|||
false => "absent",
|
||||
}
|
||||
}
|
||||
if $update {
|
||||
augeas { "enable-freshclam":
|
||||
context => "/files/etc/sysconfig/freshclam",
|
||||
changes => "set FRESHCLAM_DELAY ''",
|
||||
require => Package["clamav-update"],
|
||||
}
|
||||
exec { "sed -i 's/^Example$/#Example/' /etc/freshclam.conf":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
user => "root",
|
||||
onlyif => "egrep '^Example$' /etc/freshclam.conf",
|
||||
require => Package["clamav-update"],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Add table
Reference in a new issue