Browse Source

fix cron

master
virtubox 3 years ago
parent
commit
6f0f869a1d
  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 2>&1 >> /var/log/resul_freshclam.txt
/etc/init.d/clamav-freshclam stop >> /var/log/resul_freshclam.txt 2>&1
# check if database is outdated
/usr/bin/freshclam -v 2>&1 >> /var/log/resul_freshclam.txt
/usr/bin/freshclam -v >> /var/log/resul_freshclam.txt 2>&1
# update virus database
/etc/init.d/clamav-freshclam start 2>&1 >> /var/log/resul_freshclam.txt
/etc/init.d/clamav-freshclam start >> /var/log/resul_freshclam.txt 2>&1

Loading…
Cancel
Save