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:
parent
7cf2c0ad69
commit
3c133ad02a
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user