[Clamd] Run freshclam before starting ClamAV

This commit is contained in:
andryyy committed 2019-10-22 21:30:45 +02:00
1 parent a4ef22729c
commit cd6594df01
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -38,10 +38,13 @@ sed -i '/^\s*$/d' /var/lib/clamav/whitelist.ign2
BACKGROUND_TASKS=()
echo "Running freshclam..."
freshclam
(
while true; do
freshclam
sleep 12600
freshclam
done
) &
BACKGROUND_TASKS+=($!)