From 452fe3609f866393f7455deb1918b610f2e777e9 Mon Sep 17 00:00:00 2001 From: Germain Masse Date: Mon, 18 May 2020 10:08:15 +0200 Subject: [PATCH] Do not try to reload freshclam daemon after log rotation --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c0c42ec8..d232c283 100644 --- a/Dockerfile +++ b/Dockerfile @@ -221,7 +221,7 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \ sed -i -r 's|/var/log/clamav|/var/log/mail|g' /etc/logrotate.d/clamav-daemon && \ sed -i -r 's|invoke-rc.d.*|/usr/bin/supervisorctl signal hup clamav >/dev/null \|\| true|g' /etc/logrotate.d/clamav-daemon && \ sed -i -r 's|/var/log/clamav|/var/log/mail|g' /etc/logrotate.d/clamav-freshclam && \ - sed -i -r 's|invoke-rc.d|#invoke-rc.d|g' /etc/logrotate.d/clamav-freshclam && \ + sed -i -r '/postrotate/,/endscript/d' /etc/logrotate.d/clamav-freshclam && \ sed -i -r 's|/var/log/mail|/var/log/mail/mail|g' /etc/logrotate.d/rsyslog && \ sed -i -r '/\/var\/log\/mail\/mail.log/d' /etc/logrotate.d/rsyslog && \ # prevent syslog logrotate warnings \