mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Fix 1198 freshclam (#1199)
* Run freshclam as clamav user not root * Remove freshclam cron job when clamav is disabled
This commit is contained in:
parent
70cbfa352b
commit
f21bffe322
|
@ -97,7 +97,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 * * * root /usr/bin/freshclam --quiet" > /etc/cron.d/clamav-freshclam && \
|
||||
RUN echo "0 */6 * * * clamav /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 && \
|
||||
|
|
|
@ -1384,7 +1384,7 @@ function _fix_var_amavis_permissions() {
|
|||
function _fix_cleanup_clamav() {
|
||||
notify 'task' 'Cleaning up disabled Clamav'
|
||||
rm -f /etc/logrotate.d/clamav-*
|
||||
rm -f /etc/cron.d/freshclam
|
||||
rm -f /etc/cron.d/clamav-freshclam
|
||||
}
|
||||
|
||||
##########################################################################
|
||||
|
|
Loading…
Reference in a new issue