[Clamd] Run freshclam before starting ClamAV

This commit is contained in:
andryyy 2019-10-22 21:30:45 +02:00
parent a4ef22729c
commit cd6594df01
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 5 additions and 2 deletions

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+=($!)

View File

@ -52,7 +52,7 @@ services:
- redis
clamd-mailcow:
image: mailcow/clamd:1.31
image: mailcow/clamd:1.32
build: ./data/Dockerfiles/clamd
restart: always
dns: