You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-10 23:12:02 +02:00
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
This commit is contained in:
@@ -96,7 +96,7 @@ RUN apt-get update -q --fix-missing && \
|
|||||||
rm -f /etc/cron.weekly/fstrim && \
|
rm -f /etc/cron.weekly/fstrim && \
|
||||||
rm -f /etc/postsrsd.secret
|
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 && \
|
chmod 644 /etc/clamav/freshclam.conf && \
|
||||||
freshclam && \
|
freshclam && \
|
||||||
sed -i 's/Foreground false/Foreground true/g' /etc/clamav/clamd.conf && \
|
sed -i 's/Foreground false/Foreground true/g' /etc/clamav/clamd.conf && \
|
||||||
|
Reference in New Issue
Block a user