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