Run cron directly from supervisord

master
父節點 99c3eb3822
當前提交 fbdf51a6f9
  1. 3
      Dockerfile
  2. 2
      cron.sh
  3. 2
      supervisord.conf

@ -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

@ -1,2 +0,0 @@
source /etc/default/cron
/usr/sbin/cron -n

@ -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

載入中…
取消
儲存