diff --git a/data/Dockerfiles/clamd/clamd.sh b/data/Dockerfiles/clamd/clamd.sh index 3545e688..10df8072 100755 --- a/data/Dockerfiles/clamd/clamd.sh +++ b/data/Dockerfiles/clamd/clamd.sh @@ -14,10 +14,10 @@ rm -rf /var/lib/clamav/clamav-*.tmp mkdir -p /run/clamav /var/lib/clamav -#if [[ -s /etc/clamav/whitelist.ign2 ]]; then -# echo "Copying non-empty whitelist.ign2 to /var/lib/clamav/whitelist.ign2" -# cp /etc/clamav/whitelist.ign2 /var/lib/clamav/whitelist.ign2 -#fi +if [[ -s /etc/clamav/whitelist.ign2 ]]; then + echo "Copying non-empty whitelist.ign2 to /var/lib/clamav/whitelist.ign2" + cp /etc/clamav/whitelist.ign2 /var/lib/clamav/whitelist.ign2 +fi if [[ ! -f /var/lib/clamav/whitelist.ign2 ]]; then echo "Creating /var/lib/clamav/whitelist.ign2" diff --git a/docker-compose.yml b/docker-compose.yml index 47583efc..b92ef816 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,7 +58,7 @@ services: - redis clamd-mailcow: - image: mailcow/clamd:1.50 + image: mailcow/clamd:1.51 restart: always dns: - ${IPV4_NETWORK:-172.22.1}.254