ClamAV Scan Script
Find a file
2018-08-07 11:37:13 +02:00
ClamAVScan.sh 08.08.2018 --> Pro Scan Lauf wird ein eigenes Log erstellt 2018-08-07 11:37:13 +02:00
README.md Diverse anpassungen 2018-01-18 11:29:47 +01:00

ClamAVScan

ClamAV Scan Script

Installation

git clone git@git.onesystems.ch:system-tools/clamavscan.git /srv/ClamAVScan
chmod +x /srv/ClamAVScan/ClamAVScan.sh
ln -sf /srv/ClamAVScan/ClamAVScan.sh /etc/cron.daily/ClamAVScan

Configuration

SCAN_DIR="/home /tmp /var"
LOG_FILE="/var/log/clamav/clamscan.log"
ARG="--recursive=yes --infected --scan-html=yes --scan-pdf=yes --scan-swf=no"
AGGRESSIVE=0                # 0: Datei wird nicht gelöscht
                            # 1: Datei wird gelöscht 
SUBJECT="[Achtung]: Virus gefunden auf `hostname`"
EMAIL_TO="mail@your.ch"
EMAIL_FROM="server@your.ch"