[Clamd] Improve logging

[Compose] Remove tty from clamd-mailcow
This commit is contained in:
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 \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--without-iconv \
--disable-llvm \
--with-user=clamav \
--with-group=clamav \

View File

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

View File

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