]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav-post-updatedb
- update x32 patch, rel 3
[packages/clamav.git] / clamav-post-updatedb
index ab00abc1d3b950d874c929f1154c3137f5328802..96c7933c81307774fd8198cd3e18c357968f6d9b 100644 (file)
@@ -4,12 +4,14 @@
 
 [ -z "$FETCH_AFTER_UPGRADE" ] && FETCH_AFTER_UPGRADE="no"
 
-if [ "$UPDATE_QUIET" = "yes" ]; then
-    freshclamopt="--quiet"
-fi
-    
 if [ "$FETCH_AFTER_UPGRADE" = "yes" ]; then
+       if [ "$UPDATE_QUIET" = "yes" ]; then
+               freshclamopt="--quiet"
+       fi
+
+       notify=
+       [ -f /var/lock/subsys/clamd ] && notify="--daemon-notify"
+
        umask 022
-       /usr/bin/freshclam $freshclamopt -l /var/log/freshclam.log --daemon-notify
+       /usr/bin/freshclam $freshclamopt -l /var/log/freshclam.log $notify || :
 fi
-
This page took 0.054025 seconds and 4 git commands to generate.