security/clamav: add model version which now forces migration

This adds the defaults to the config, which adds the database mirror,
which finally writes freshclam.conf in usable state.  Yay!  \o/
This commit is contained in:
Franco Fichtner
2017-08-10 08:32:45 +02:00
parent 6169d290b8
commit 8b5af2e44a
6 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= clamav
PLUGIN_VERSION= 0.1
PLUGIN_COMMENT= ClamAV anti virus scanner
PLUGIN_COMMENT= Antivirus engine for detecting malicious threats
PLUGIN_DEPENDS= clamav
PLUGIN_MAINTAINER= m.muenz@gmail.com
PLUGIN_DEVEL= yes
+5 -5
View File
@@ -1,8 +1,8 @@
ClamAV® is an open source (GPL) anti-virus engine used in a
variety of situations including email scanning, web scanning,
and end point security. It provides a number of utilities
including a flexible and scalable multi-threaded daemon,
a command line scanner and an advanced tool for automatic
ClamAV(r) is an open source (GPL) anti-virus engine used in a
variety of situations including email scanning, web scanning,
and end point security. It provides a number of utilities
including a flexible and scalable multi-threaded daemon,
a command line scanner and an advanced tool for automatic
database updates.
WWW: https://www.clamav.net/
@@ -57,6 +57,6 @@ function clamav_services()
'pidfile' => '/var/run/clamav/freshclam.pid'
);
}
return $services;
}
@@ -54,7 +54,7 @@ class ServiceController extends ApiControllerBase
} else {
return array("response" => array());
}
}
}
/**
* start clamav service (in background)
* @return array
@@ -1,6 +1,7 @@
<model>
<mount>//OPNsense/clamav/general</mount>
<description>ClamAV configuration</description>
<version>1.0.0</version>
<items>
<enabled type="BooleanField">
<default>0</default>
@@ -10,4 +10,4 @@ chmod 750 /var/db/clamav
mkdir -p /var/log/clamav
chown -R clamav:clamav /var/log/clamav
chmod 750 /var/log/clamav
chmod 750 /var/log/clamav