[Clamd] Improve logging

[Compose] Remove tty from clamd-mailcow
master
andryyy 2019-01-10 22:13:47 +01:00
parent 7686171905
commit b0130c153c
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
3 changed files with 0 additions and 9 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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}