From a317ba09263986008a4f38cd7b95578ce781dfef Mon Sep 17 00:00:00 2001 From: saibotk Date: Mon, 29 Jul 2019 12:15:36 +0200 Subject: [PATCH] adjust crontab installation --- services/php/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/php/Dockerfile b/services/php/Dockerfile index f8e0629..14ae1c9 100644 --- a/services/php/Dockerfile +++ b/services/php/Dockerfile @@ -39,11 +39,12 @@ RUN mkdir -p /var/log/pterodactyl COPY install.sh /usr/local/bin/install COPY upgrade.sh /usr/local/bin/upgrade -COPY schedule /var/spool/cron/crontabs/schedule +COPY schedule . COPY supervisord.conf /etc/supervisor/supervisord.conf COPY www.conf /usr/local/etc/php-fpm.d/www.conf -RUN chmod +x /usr/local/bin/install; \ +RUN cat schedule >> /var/spool/cron/crontabs/root; \ + chmod +x /usr/local/bin/install; \ chmod +x /usr/local/bin/upgrade ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]