mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00: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:
parent
358160acf9
commit
6a69bb192c
|
@ -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 && \
|
||||||
|
|
Loading…
Reference in a new issue