parent
7686171905
commit
b0130c153c
|
@ -32,7 +32,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
--sysconfdir=/etc/clamav \
|
--sysconfdir=/etc/clamav \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--infodir=/usr/share/info \
|
--infodir=/usr/share/info \
|
||||||
--without-iconv \
|
|
||||||
--disable-llvm \
|
--disable-llvm \
|
||||||
--with-user=clamav \
|
--with-user=clamav \
|
||||||
--with-group=clamav \
|
--with-group=clamav \
|
||||||
|
|
|
@ -6,13 +6,6 @@ if [[ "${SKIP_CLAMD}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prepare log pipes
|
|
||||||
mkdir -p /var/log/clamav
|
|
||||||
touch /var/log/clamav/clamd.log /var/log/clamav/freshclam.log
|
|
||||||
chown -R clamav:clamav /var/log/clamav/
|
|
||||||
adduser clamav tty
|
|
||||||
chmod g+rw /dev/console
|
|
||||||
|
|
||||||
# Prepare whitelist
|
# Prepare whitelist
|
||||||
if [[ -s /etc/clamav/whitelist.ign2 ]]; then
|
if [[ -s /etc/clamav/whitelist.ign2 ]]; then
|
||||||
cp /etc/clamav/whitelist.ign2 /var/lib/clamav/whitelist.ign2
|
cp /etc/clamav/whitelist.ign2 /var/lib/clamav/whitelist.ign2
|
||||||
|
|
|
@ -58,7 +58,6 @@ services:
|
||||||
image: mailcow/clamd:1.16
|
image: mailcow/clamd:1.16
|
||||||
build: ./data/Dockerfiles/clamd
|
build: ./data/Dockerfiles/clamd
|
||||||
restart: always
|
restart: always
|
||||||
tty: true
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=${TZ}
|
- TZ=${TZ}
|
||||||
- SKIP_CLAMD=${SKIP_CLAMD:-n}
|
- SKIP_CLAMD=${SKIP_CLAMD:-n}
|
||||||
|
|
Loading…
Reference in New Issue