From 0c99c0fbfe1b7481323732b1634f02ac226263fc Mon Sep 17 00:00:00 2001 From: Christoph Kottke Date: Sat, 4 May 2024 16:37:39 +0200 Subject: [PATCH] last touch was crontab... --- Dockerfile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c25fa5dd..30ac6ae19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,10 +56,16 @@ RUN set -e; \ chmod -R g+rw ./images/eqsl_card_images/; \ chmod -R g+rw ./install/; -RUN echo "Installing cronjobs" \ -RUN touch /etc/crontab && \ - echo "* * * * * curl --silent http://localhost/index.php/cron/run &>/dev/null" >>/etc/crontab -RUN chmod 0644 /etc/crontab -RUN crontab /etc/crontab -RUN mkdir -p /var/log/cron -RUN sed -i 's/^exec /service cron start\n\nexec /' /usr/local/bin/apache2-foreground +# Create the cron job +RUN set -e; \ + \ + touch /etc/cron.d/wavelog; \ + echo "* * * * * curl --silent http://localhost/index.php/cron/run &>/dev/null" >> /etc/cron.d/wavelog; \ + \ + chmod 0644 /etc/cron.d/wavelog;\ + \ + crontab /etc/cron.d/wavelog;\ + \ + mkdir -p /var/log/cron; \ + \ + sed -i 's/^exec /service cron start\n\nexec /' /usr/local/bin/apache2-foreground;