From 6a69bb192c642d3a3c8dfedc3231a0408b368526 Mon Sep 17 00:00:00 2001 From: Dingoz Date: Wed, 15 Aug 2018 08:27:07 +0200 Subject: [PATCH] Fix freshclam cron name (#1019) This fixes the daily mail error when logrotate tries to restart a non existing freshclam daemon because cron name doesn't fit freshclam init script invoked by logrotate --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4357eb4e..50bf4e12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -96,7 +96,7 @@ RUN apt-get update -q --fix-missing && \ rm -f /etc/cron.weekly/fstrim && \ rm -f /etc/postsrsd.secret -RUN echo "0 0,6,12,18 * * * /usr/bin/freshclam --quiet" > /etc/cron.d/freshclam && \ +RUN echo "0 0,6,12,18 * * * /usr/bin/freshclam --quiet" > /etc/cron.d/clamav-freshclam && \ chmod 644 /etc/clamav/freshclam.conf && \ freshclam && \ sed -i 's/Foreground false/Foreground true/g' /etc/clamav/clamd.conf && \