diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index 8a05cb1a..46c0b600 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -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 diff --git a/Containers/clamav/start.sh b/Containers/clamav/start.sh index 658e9f9b..0f19f86b 100644 --- a/Containers/clamav/start.sh +++ b/Containers/clamav/start.sh @@ -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 "$@"