[ClamAV] Copy productive whitelist.ign to exposed configuration folder, remove direct mount of whitelist file

master
andryyy 2019-12-14 15:12:37 +01:00
parent 25c2bcc8b3
commit 8c3ab0371a
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 3 additions and 4 deletions

View File

@ -37,6 +37,9 @@ chmod 750 /run/clamav
stat /var/lib/clamav/whitelist.ign2
dos2unix /var/lib/clamav/whitelist.ign2
sed -i '/^\s*$/d' /var/lib/clamav/whitelist.ign2
# Copying to /etc/clamav to expose file as-is to administrator
cp -p /var/lib/clamav/whitelist.ign2 /etc/clamav/whitelist.ign2
BACKGROUND_TASKS=()

View File

@ -1,3 +0,0 @@
# Please restart ClamAV after changing signatures
Example-Signature.Ignore-1
PUA.Pdf.Trojan.EmbeddedJavaScript-1

View File

@ -62,7 +62,6 @@ services:
- TZ=${TZ}
- SKIP_CLAMD=${SKIP_CLAMD:-n}
volumes:
- ./data/conf/clamav/whitelist.ign2:/var/lib/clamav/whitelist.ign2
- ./data/conf/clamav/:/etc/clamav/
networks:
mailcow-network: