docker-malware-scan/assets/install_antivirus.sh
2020-09-09 19:57:54 -07:00

10 lines
303 B
Bash

#!/bin/sh
# setup cron to update virus signatures hourly
cd /usr/local
crontab -l > tempcrons
echo "5 * * * * /usr/bin/freshclam >> /var/log/cron/general.log 2>&1" >> tempcrons
echo "10 * * * * /usr/local/sbin/maldet -u -d >> /var/log/cron/general.log 2>&1" >> tempcrons
crontab tempcrons
rm tempcrons