clamav: Add $clamav::daemon::socket variable.
This commit is contained in:
parent
8db744e125
commit
89e1dad9d8
1 changed files with 2 additions and 0 deletions
|
@ -61,9 +61,11 @@ class clamav::daemon {
|
||||||
if (versioncmp($::operatingsystemrelease, 7) < 0) {
|
if (versioncmp($::operatingsystemrelease, 7) < 0) {
|
||||||
$package = "clamd"
|
$package = "clamd"
|
||||||
$service = "clamd"
|
$service = "clamd"
|
||||||
|
$socket = "/var/run/clamav/clamd.sock"
|
||||||
} else {
|
} else {
|
||||||
$package = "clamav-scanner-systemd"
|
$package = "clamav-scanner-systemd"
|
||||||
$service = "clamd@scan"
|
$service = "clamd@scan"
|
||||||
|
$socket = "/var/run/clamd.scan/clamd.sock"
|
||||||
exec { "sed -i 's/^Example$/#Example/' /etc/clamd.d/scan.conf":
|
exec { "sed -i 's/^Example$/#Example/' /etc/clamd.d/scan.conf":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
user => "root",
|
user => "root",
|
||||||
|
|
Loading…
Add table
Reference in a new issue