mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00: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
|
FROM clamav/clamav:1.3.1-59
|
||||||
|
|
||||||
COPY clamav.conf /clamav.conf
|
COPY clamav.conf /clamav.conf
|
||||||
COPY --chmod=775 start.sh /start.sh
|
COPY --chmod=775 start.script /start.script
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
apk upgrade --no-cache -a; \
|
apk upgrade --no-cache -a; \
|
||||||
|
|
@ -11,8 +11,8 @@ RUN set -ex; \
|
||||||
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 "/^set -eu/r /start.script" /init-unprivileged; \
|
||||||
sed -i 's|#!/sbin/tini /bin/sh|#!/bin/sh|' /init
|
rm /start.script
|
||||||
|
|
||||||
VOLUME /var/lib/clamav
|
VOLUME /var/lib/clamav
|
||||||
|
|
||||||
|
|
@ -20,4 +20,4 @@ USER clamav
|
||||||
|
|
||||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
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
|
# Adjust settings
|
||||||
cat /etc/clamav/clamd.conf > /tmp/clamd.conf
|
cat /etc/clamav/clamd.conf > /tmp/clamd.conf
|
||||||
CLAMAV_FILE="$(sed "s|10G|$MAX_SIZE|" /clamav.conf)"
|
CLAMAV_FILE="$(sed "s|10G|$MAX_SIZE|" /clamav.conf)"
|
||||||
echo "$CLAMAV_FILE" >> /tmp/clamd.conf
|
echo "$CLAMAV_FILE" >> /tmp/clamd.conf
|
||||||
|
|
||||||
# Call initial init
|
|
||||||
/init --config-file="/tmp/clamd.conf"
|
|
||||||
|
|
||||||
exec "$@"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue