From cd6594df01347e467fb378aae075c266b5c9c111 Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 22 Oct 2019 21:30:45 +0200 Subject: [PATCH] [Clamd] Run freshclam before starting ClamAV --- data/Dockerfiles/clamd/clamd.sh | 5 ++++- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/data/Dockerfiles/clamd/clamd.sh b/data/Dockerfiles/clamd/clamd.sh index a8ceb5f6..348ec2d5 100755 --- a/data/Dockerfiles/clamd/clamd.sh +++ b/data/Dockerfiles/clamd/clamd.sh @@ -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+=($!) diff --git a/docker-compose.yml b/docker-compose.yml index 3eee7857..8118d2ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: