[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
3 changed files with 0 additions and 9 deletions

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