clamav/cron/freshclam

8 lines
303 B
Plaintext
Raw Normal View History

2018-05-31 12:29:07 +02:00
#!/bin/sh
# make sure the process is stopped
2018-07-19 23:18:18 +02:00
/etc/init.d/clamav-freshclam stop >> /var/log/resul_freshclam.txt 2>&1
2018-05-31 12:29:07 +02:00
# check if database is outdated
2018-07-19 23:18:18 +02:00
/usr/bin/freshclam -v >> /var/log/resul_freshclam.txt 2>&1
2018-05-31 12:29:07 +02:00
# update virus database
2018-07-19 23:18:18 +02:00
/etc/init.d/clamav-freshclam start >> /var/log/resul_freshclam.txt 2>&1