diff --git a/init b/init index d864068..bbd3fdb 100755 --- a/init +++ b/init @@ -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