Skip to content

Instantly share code, notes, and snippets.

View jrxpress's full-sized avatar

João Junior jrxpress

View GitHub Profile
@kevinchappell
kevinchappell / clamav.cron
Created December 6, 2015 15:21
cPanel ClamAV Cron Job
#!/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