clamav: freshclam: Remove UpdateLogFile option
authorPaul Donald <redacted>
Tue, 8 Oct 2024 20:11:57 +0000 (22:11 +0200)
committerRosen Penev <redacted>
Sun, 27 Oct 2024 22:59:04 +0000 (15:59 -0700)
( to instead use syslog options )

Signed-off-by: Paul Donald <redacted>
net/clamav/files/freshclam.config
net/clamav/files/freshclam.init

index ccce09a41758a5b421927d3d494a72412855d091..66c850a90d9924b08051adbfe563aae2a62062a4 100644 (file)
@@ -1,6 +1,5 @@
 config freshclam 'freshclam'
        option freshclam_config_file '/etc/clamav/freshclam.conf'
-       option UpdateLogFile '/tmp/freshclam.log'
        option DatabaseMirror 'database.clamav.net'
        option NotifyClamd '/etc/clamav/clamd.conf'
        option DatabaseOwner 'root'
index 38842a95e13e3592488f74fc8db30f68cc685108..6c7d6e7a18526c8b7645f7f85c036cd0d98e9c0a 100644 (file)
@@ -11,7 +11,6 @@ FRESHCLAM_CONFIGFILE="/tmp/clamav/freshclam.conf"
 validate_freshclam_section() {
        uci_load_validate freshclam freshclam "$1" "$2" \
                'freshclam_config_file:string' \
-               'UpdateLogFile:string' \
                'DatabaseMirror:string' \
                'NotifyClamd:string' \
                'DatabaseOwner:string' \
@@ -29,14 +28,12 @@ start_freshclam_instance() {
 
        mkdir -p "$DatabaseDirectory"
        mkdir -p /etc/clamav
-       touch /tmp/freshclam.log
        touch /tmp/freshclam.pid
 
        mkdir -p "$(dirname $FRESHCLAM_CONFIGFILE)"
        ln -sf "$freshclam_config_file" "$FRESHCLAM_CONFIGFILE"
 
        {
-       echo "UpdateLogFile " "$UpdateLogFile"
        echo "DatabaseMirror " "$DatabaseMirror"
        echo "NotifyClamd " "$NotifyClamd"
        echo "DatabaseOwner " "$DatabaseOwner"
git clone https://git.99rst.org/PROJECT