Skip to content

Instantly share code, notes, and snippets.

Avatar

João Junior jrxpress

View GitHub Profile
@kevinchappell
kevinchappell / clamav.cron
Created Dec 6, 2015
cPanel ClamAV Cron Job
View clamav.cron
#!/bin/sh
for i in `awk '!/nobody/{print $2 | "sort | uniq" }' /etc/userdomains | sort | uniq`; do
SUBJECT="VIRUS SCAN ${i}"
EMAIL="youremail@yourdomain.com"
# Log location
LOG="/var/log/clamav/${i}-scan.log"
# Quarantine location
You can’t perform that action at this time.