From 45f07b18b13c4727fc5f56f86d8ae088fc2c2458 Mon Sep 17 00:00:00 2001 From: Skywalker-11 Date: Sun, 26 Nov 2017 17:49:44 +0100 Subject: [PATCH] Only run freshclam if it is not running yet --- debian/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/install.sh b/debian/install.sh index 31d85d5..37b8cf6 100644 --- a/debian/install.sh +++ b/debian/install.sh @@ -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;