clamav - adjust max filesize conditionally

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-07-09 15:01:27 +02:00
parent 3a691aa9a2
commit 66dc0bc7d6
5 changed files with 25 additions and 10 deletions

View file

@ -0,0 +1,11 @@
#!/bin/bash
# Adjust settings
cat /etc/clamav/clamd.conf > /tmp/clamd.conf
CLAMAV_FILE="$(sed "s|10G|$MAX_SIZE|" /clamav.conf)"
echo "$CLAMAV_FILE" >> /tmp/clamd.conf
# Call initial init
exec /init --config-file="/tmp/clamd.conf"
exec "$@"