Merge "Update ansible roles to automate nordix openvpn user management"
[infra/tools.git] / clamav / etc / cron.daily / clamav
index 2106235ef96d2aee9ec798f05e392a1352d5a39a..fee539821af9cfd7b7e41c96b7ab92a6d2182ff5 100755 (executable)
@@ -48,7 +48,7 @@ SCANQNT="/var/.quatrantine"
 # Check if clamav is installed
 DATE=`date -u`
 
-if [ ! -f /var/lib/clamav/daily.cld -o ! -x /usr/bin/clamscan -o ! -d /var/log/clamav ]
+if ( [ ! -f /var/lib/clamav/daily.cld ] && [ ! -f /var/lib/clamav/daily.cvd ] ) || [ ! -x /usr/bin/clamscan ] || [ ! -d /var/log/clamav ]
 then
   echo "$DATE: clamav is not installed or is incorrectly installed." >> $ERRORLOG
   notify-send-user -i /usr/share/pixmaps/clamtk.png -u critical  "clamav: software not installed correctly"