mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-23 07:56:57 +00:00
clamav - adjust max filesize conditionally
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
3a691aa9a2
commit
66dc0bc7d6
5 changed files with 25 additions and 10 deletions
11
Containers/clamav/start.sh
Normal file
11
Containers/clamav/start.sh
Normal 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 "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue