[ClamAV] Cleanup garbage when starting container (tmp files may fill up disk, when container runs oom)
This commit is contained in:
parent
7cf2c0ad69
commit
3c133ad02a
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user