Browse Source

fix cron

master
virtubox 4 years ago
parent
commit
4f38e23d66
  1. 6
      cron/freshclam

6
cron/freshclam

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

Loading…
Cancel
Save