Only run freshclam if it is not running yet

This commit is contained in:
Skywalker-11 2017-11-26 17:49:44 +01:00
parent a7036442d7
commit 45f07b18b1

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;