Fix freshclam exiting 1

This commit is contained in:
Deon George 2019-05-21 22:50:53 +10:00
parent de7d7b5ff6
commit b4763dd651

3
init
View File

@ -13,7 +13,8 @@ trap 'stop' SIGTERM
if [ "$1" == "start" ]; then
chown -R clamav:clamav /var/lib/clamav
[ -f /var/lib/clamav/daily.cvd ] || /usr/bin/freshclam
# fresclam exits when it is up to date
[ -f /var/lib/clamav/daily.cvd ] || /usr/bin/freshclam || ([ $? -eq 1 ] && /bin/true)
# Update Daemon
/usr/bin/freshclam -dc 6