1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-12 10:45:14 +02:00

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

This commit is contained in:
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
fi
# Cleaning up garbage
echo "Cleaning up tmp files..."
rm -rf /var/lib/clamav/clamav-*.tmp
# Prepare whitelist
mkdir -p /run/clamav /var/lib/clamav

View File

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