[ClamAV] Cleanup garbage when starting container (tmp files may fill up disk, when container runs oom)

master
andryyy 2019-09-24 16:39:39 +02:00
parent 7cf2c0ad69
commit 3c133ad02a
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@ if [[ "${SKIP_CLAMD}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
exit 0 exit 0
fi fi
# Cleaning up garbage
echo "Cleaning up tmp files..."
rm -rf /var/lib/clamav/clamav-*.tmp
# Prepare whitelist # Prepare whitelist
mkdir -p /run/clamav /var/lib/clamav mkdir -p /run/clamav /var/lib/clamav

View File

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