From f92673031a7a670171fc8d3b40b93be92baa924d Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Mon, 21 Sep 2020 18:55:51 -0400 Subject: [PATCH] updates to mailserver container --- src/mailsrv/Containerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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