mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-09-20 14:56:08 +08:00
fix clamav
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
504ae2d617
commit
f72ab28a41
|
@ -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
|
||||
|
||||
|
|
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue