mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:35:06 +08:00
Merge pull request #125 from Skywalker-11/master
Only run freshclam if it is not running yet
This commit is contained in:
commit
dc160a18f5
1 changed files with 4 additions and 1 deletions
5
debian/install.sh
vendored
5
debian/install.sh
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue