mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix clamav
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
504ae2d617
commit
f72ab28a41
2 changed files with 4 additions and 3 deletions
|
|
@ -10,7 +10,9 @@ RUN set -ex; \
|
||||||
apk add --no-cache tzdata bash; \
|
apk add --no-cache tzdata bash; \
|
||||||
mkdir -p /var/run/clamav /run/lock; \
|
mkdir -p /var/run/clamav /run/lock; \
|
||||||
chown -R clamav:clamav /var/run/clamav /run/clamav /var/log/clamav /var/lock /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
|
VOLUME /var/lib/clamav
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ CLAMAV_FILE="$(sed "s|10G|$MAX_SIZE|" /clamav.conf)"
|
||||||
echo "$CLAMAV_FILE" >> /tmp/clamd.conf
|
echo "$CLAMAV_FILE" >> /tmp/clamd.conf
|
||||||
|
|
||||||
# Call initial init
|
# Call initial init
|
||||||
# shellcheck disable=SC2093
|
/init --config-file="/tmp/clamd.conf"
|
||||||
exec /init --config-file="/tmp/clamd.conf"
|
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue