Ajouter 'cron/freshclam'

This commit is contained in:
virtubox 2018-05-31 10:29:07 +00:00
parent 921bee6617
commit 9924bddc69
1 changed files with 7 additions and 0 deletions

7
cron/freshclam Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# make sure the process is stopped
/etc/init.d/clamav-freshclam stop >> /var/log/resul_freshclam.txt
# check if database is outdated
/usr/bin/freshclam -v >> /var/log/resul_freshclam.txt
# update virus database
/etc/init.d/clamav-freshclam start >> /var/log/resul_freshclam.txt