diff --git a/src/mailsrv/Containerfile b/src/mailsrv/Containerfile index fc79b97..6db1773 100644 --- a/src/mailsrv/Containerfile +++ b/src/mailsrv/Containerfile @@ -35,11 +35,9 @@ RUN addgroup --gid ${FILESUID:?} vmail && \ # copy our custom scripts COPY assets/bin /usr/local/bin -# copy root's crontab -COPY assets/crontab /root/ - -# load root's crontab -RUN crontab /root/crontab +# put restart job in system crontab +RUN echo '# restart postfix and dovecot every Monday at 3AM' >> /etc/crontab && \ + echo '23 3 * * 1 root systemctl restart postfix && systemctl restart dovecot' >> /etc/crontab ### ### mkvirtual