mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-01 11:32:27 +08:00
try to fix it
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
f72ab28a41
commit
efca35b0e9
2 changed files with 4 additions and 11 deletions
|
@ -3,7 +3,7 @@
|
|||
FROM clamav/clamav:1.3.1-59
|
||||
|
||||
COPY clamav.conf /clamav.conf
|
||||
COPY --chmod=775 start.sh /start.sh
|
||||
COPY --chmod=775 start.script /start.script
|
||||
|
||||
RUN set -ex; \
|
||||
apk upgrade --no-cache -a; \
|
||||
|
@ -11,8 +11,8 @@ RUN set -ex; \
|
|||
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; \
|
||||
grep -q '#!/sbin/tini /bin/sh' /init; \
|
||||
sed -i 's|#!/sbin/tini /bin/sh|#!/bin/sh|' /init
|
||||
sed -i "/^set -eu/r /start.script" /init-unprivileged; \
|
||||
rm /start.script
|
||||
|
||||
VOLUME /var/lib/clamav
|
||||
|
||||
|
@ -20,4 +20,4 @@ USER clamav
|
|||
|
||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||
|
||||
ENTRYPOINT ["/start.sh"]
|
||||
ENTRYPOINT ["/init-unprivileged", "--config-file", "/tmp/clamd.conf"]
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Adjust settings
|
||||
cat /etc/clamav/clamd.conf > /tmp/clamd.conf
|
||||
CLAMAV_FILE="$(sed "s|10G|$MAX_SIZE|" /clamav.conf)"
|
||||
echo "$CLAMAV_FILE" >> /tmp/clamd.conf
|
||||
|
||||
# Call initial init
|
||||
/init --config-file="/tmp/clamd.conf"
|
||||
|
||||
exec "$@"
|
Loading…
Reference in a new issue