all-in-one/Containers/clamav/start.sh
Simon L. 789c9abcd2 fix SC
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-07-11 14:30:56 +02:00

12 lines
271 B
Bash

#!/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
# shellcheck disable=SC2093
exec /init --config-file="/tmp/clamd.conf"
exec "$@"