-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clamav - adjust max filesize conditionally
Signed-off-by: Simon L. <szaimen@e.mail.de>
- Loading branch information
Showing
5 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# AIO settings | ||
MaxDirectoryRecursion 30 | ||
MaxFileSize 100M | ||
PCREMaxFileSize 100M | ||
StreamMaxLength 100M | ||
MaxFileSize 10G | ||
PCREMaxFileSize 10G | ||
StreamMaxLength 10G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters