Merge pull request #125 from Skywalker-11/master

Only run freshclam if it is not running yet
This commit is contained in:
Shawn Iverson 2017-12-01 21:02:42 -05:00 committed by GitHub
commit dc160a18f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
debian/install.sh vendored
View file

@ -630,7 +630,10 @@ else
/usr/sbin/ms-update-phishing >/dev/null 2>&1
if [ -d '/etc/clamav' ]; then
/usr/bin/freshclam 2>/dev/null
#Test if freshclam is already running
if [[ -z $(ps aux | grep "[f]reshclam") ]]; then
/usr/bin/freshclam 2>/dev/null
fi
fi
echo;