mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
another attempt
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
efca35b0e9
commit
f90971ef9d
1 changed files with 5 additions and 2 deletions
|
|
@ -12,7 +12,10 @@ RUN set -ex; \
|
||||||
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; \
|
||||||
sed -i "/^set -eu/r /start.script" /init-unprivileged; \
|
sed -i "/^set -eu/r /start.script" /init-unprivileged; \
|
||||||
rm /start.script
|
rm /start.script; \
|
||||||
|
grep -q 'clamd --foreground &' /init-unprivileged; \
|
||||||
|
sed -i "s|clamd --foreground \&|clamd --foreground \& --config-file /tmp/clamd.conf|" /init-unprivileged; \
|
||||||
|
cat /init-unprivileged
|
||||||
|
|
||||||
VOLUME /var/lib/clamav
|
VOLUME /var/lib/clamav
|
||||||
|
|
||||||
|
|
@ -20,4 +23,4 @@ USER clamav
|
||||||
|
|
||||||
LABEL com.centurylinklabs.watchtower.enable="false"
|
LABEL com.centurylinklabs.watchtower.enable="false"
|
||||||
|
|
||||||
ENTRYPOINT ["/init-unprivileged", "--config-file", "/tmp/clamd.conf"]
|
ENTRYPOINT ["/init-unprivileged"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue