Files
nextcloud/Containers/clamav/start.sh
2024-07-11 14:07:32 +02:00

12 lines
243 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
exec /init --config-file="/tmp/clamd.conf"
exec "$@"