diff --git a/Dockerfile b/Dockerfile index 7c354d5..e984a74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,12 +18,11 @@ RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/so haraka \ && chown -R haraka:haraka /haraka -COPY cron.sh /cron.sh COPY haraka.sh /haraka.sh COPY supervisord.conf /etc/supervisor/supervisord.conf COPY certbot-renew.sh /etc/cron.daily/certbot-renew.sh -RUN chmod +x /cron.sh /haraka.sh /etc/cron.daily/certbot-renew.sh +RUN chmod +x /haraka.sh /etc/cron.daily/certbot-renew.sh # Install and Haraka and it's plugins USER node diff --git a/cron.sh b/cron.sh deleted file mode 100644 index 7c68e6a..0000000 --- a/cron.sh +++ /dev/null @@ -1,2 +0,0 @@ -source /etc/default/cron -/usr/sbin/cron -n diff --git a/supervisord.conf b/supervisord.conf index d976741..7f5c0be 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -19,4 +19,4 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 -command=/cron.sh +command=/usr/sbin/cron -n