mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 06:04:31 +04:00
clamav: Align with milter options and remove LogFile* options
( to instead use syslog options ) Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
config clamav 'clamav'
|
config clamav 'clamav'
|
||||||
option clamd_config_file '/etc/clamav/clamd.conf'
|
option clamd_config_file '/etc/clamav/clamd.conf'
|
||||||
option LogFile '/tmp/clamd.log'
|
|
||||||
option LogFileMaxSize '1M'
|
|
||||||
option LogTime 'no'
|
option LogTime 'no'
|
||||||
option LogVerbose 'no'
|
option LogVerbose 'no'
|
||||||
option ExtendedDetectionInfo 'no'
|
option ExtendedDetectionInfo 'no'
|
||||||
|
|||||||
@@ -11,8 +11,6 @@ CLAMD_CONFIGFILE="/tmp/clamav/clamd.conf"
|
|||||||
validate_clamav_section() {
|
validate_clamav_section() {
|
||||||
uci_load_validate clamav clamav "$1" "$2" \
|
uci_load_validate clamav clamav "$1" "$2" \
|
||||||
'clamd_config_file:string' \
|
'clamd_config_file:string' \
|
||||||
'LogFile:string' \
|
|
||||||
'LogFileMaxSize:string' \
|
|
||||||
'LogVerbose:string' \
|
'LogVerbose:string' \
|
||||||
'ExtendedDetectionInfo:string' \
|
'ExtendedDetectionInfo:string' \
|
||||||
'LogTime:string' \
|
'LogTime:string' \
|
||||||
@@ -63,8 +61,6 @@ start_clamav_instance() {
|
|||||||
ln -sf "$clamd_config_file" "$CLAMD_CONFIGFILE"
|
ln -sf "$clamd_config_file" "$CLAMD_CONFIGFILE"
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "LogFile " "$LogFile"
|
|
||||||
echo "LogFileMaxSize " "$LogFileMaxSize"
|
|
||||||
echo "LogVerbose " "$LogVerbose"
|
echo "LogVerbose " "$LogVerbose"
|
||||||
echo "ExtendedDetectionInfo " "$ExtendedDetectionInfo"
|
echo "ExtendedDetectionInfo " "$ExtendedDetectionInfo"
|
||||||
echo "LogTime " "$LogTime"
|
echo "LogTime " "$LogTime"
|
||||||
|
|||||||
Reference in New Issue
Block a user