clamav: Align with milter options and remove LogFile* options
authorPaul Donald <newtwen+github@gmail.com>
Tue, 8 Oct 2024 19:14:26 +0000 (21:14 +0200)
committerRosen Penev <rosenp@gmail.com>
Sun, 27 Oct 2024 22:59:04 +0000 (15:59 -0700)
( to instead use syslog options )

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
net/clamav/files/clamav.config
net/clamav/files/clamav.init

index bdd5550336c6e2856b38fc798b7434d824d6dcf2..a3203d7c2fb5668089d3b064212071c33d70d8b5 100644 (file)
@@ -1,7 +1,5 @@
 config clamav 'clamav'
        option clamd_config_file '/etc/clamav/clamd.conf'
-       option LogFile '/tmp/clamd.log'
-       option LogFileMaxSize '1M'
        option LogTime 'no'
        option LogVerbose 'no'
        option ExtendedDetectionInfo 'no'
index ca093cdff08260998df9d584769a934e1d16a856..7ade317ef78a7c21a7f48bf85b390d387b13c6a7 100644 (file)
@@ -11,8 +11,6 @@ CLAMD_CONFIGFILE="/tmp/clamav/clamd.conf"
 validate_clamav_section() {
        uci_load_validate clamav clamav "$1" "$2" \
                'clamd_config_file:string' \
-               'LogFile:string' \
-               'LogFileMaxSize:string' \
                'LogVerbose:string' \
                'ExtendedDetectionInfo:string' \
                'LogTime:string' \
@@ -63,8 +61,6 @@ start_clamav_instance() {
        ln -sf "$clamd_config_file" "$CLAMD_CONFIGFILE"
 
        {
-       echo "LogFile " "$LogFile"
-       echo "LogFileMaxSize " "$LogFileMaxSize"
        echo "LogVerbose " "$LogVerbose"
        echo "ExtendedDetectionInfo " "$ExtendedDetectionInfo"
        echo "LogTime " "$LogTime"