mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
clamav: adjust a few more things
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
aa452b4613
commit
a661b488c3
4 changed files with 9 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ FROM alpine:3.21.3
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apk upgrade --no-cache -a; \
|
apk upgrade --no-cache -a; \
|
||||||
apk add --no-cache tzdata clamav supervisor; \
|
apk add --no-cache tzdata clamav supervisor bash; \
|
||||||
mkdir -p /run/clamav /var/log/supervisord /var/run/supervisord; \
|
mkdir -p /run/clamav /var/log/supervisord /var/run/supervisord; \
|
||||||
chmod 777 -R /run/clamav /var/log/clamav /var/log/supervisord /var/run/supervisord; \
|
chmod 777 -R /run/clamav /var/log/clamav /var/log/supervisord /var/run/supervisord; \
|
||||||
sed -i "s|#\?MaxDirectoryRecursion.*|MaxDirectoryRecursion 30|g" /etc/clamav/clamd.conf; \
|
sed -i "s|#\?MaxDirectoryRecursion.*|MaxDirectoryRecursion 30|g" /etc/clamav/clamd.conf; \
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/bash
|
||||||
|
|
||||||
if [ "$(echo "PING" | nc 127.0.0.1 3310)" != "PONG" ]; then
|
if [ "$(echo "PING" | nc 127.0.0.1 3310)" != "PONG" ]; then
|
||||||
echo "ERROR: Unable to contact server"
|
echo "ERROR: Unable to contact server"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/bash
|
||||||
|
|
||||||
sed "s|aio-placeholder|$MAX_SIZE|" /etc/clamav/clamd.conf > /tmp/clamd.conf
|
sed "s|aio-placeholder|$MAX_SIZE|" /etc/clamav/clamd.conf > /tmp/clamd.conf
|
||||||
|
|
||||||
|
echo "Clamav started"
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
|
|
@ -9,13 +9,15 @@ logfile_backups=10
|
||||||
loglevel=error
|
loglevel=error
|
||||||
|
|
||||||
[program:freshclam]
|
[program:freshclam]
|
||||||
stdout_logfile=NONE
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
command=freshclam --foreground --stdout --daemon
|
command=freshclam --foreground --stdout --daemon
|
||||||
|
|
||||||
[program:clamd]
|
[program:clamd]
|
||||||
stdout_logfile=NONE
|
stdout_logfile=/dev/stdout
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
command=clamd --foreground --config-file=/tmp/clamd.conf
|
command=clamd --foreground --config-file=/tmp/clamd.conf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue