8 lines
303 B
Bash
8 lines
303 B
Bash
#!/bin/sh
|
|
# make sure the process is stopped
|
|
/etc/init.d/clamav-freshclam stop 2>&1 >> /var/log/resul_freshclam.txt
|
|
# check if database is outdated
|
|
/usr/bin/freshclam -v 2>&1 >> /var/log/resul_freshclam.txt
|
|
# update virus database
|
|
/etc/init.d/clamav-freshclam start 2>&1 >> /var/log/resul_freshclam.txt
|