fix clamav

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-07-11 15:54:25 +02:00
parent 504ae2d617
commit f72ab28a41
2 changed files with 4 additions and 3 deletions

View file

@ -10,7 +10,9 @@ RUN set -ex; \
apk add --no-cache tzdata bash; \
mkdir -p /var/run/clamav /run/lock; \
chown -R clamav:clamav /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock; \
chmod 777 -R /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock /tmp
chmod 777 -R /var/run/clamav /run/clamav /var/log/clamav /var/lock /run/lock /tmp; \
grep -q '#!/sbin/tini /bin/sh' /init; \
sed -i 's|#!/sbin/tini /bin/sh|#!/bin/sh|' /init
VOLUME /var/lib/clamav

View file

@ -6,7 +6,6 @@ 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"
/init --config-file="/tmp/clamd.conf"
exec "$@"