From f163b3708980633c7f400b7554b125db57ac3044 Mon Sep 17 00:00:00 2001 From: Andrei Condurachi Date: Tue, 24 Nov 2020 18:03:52 +0200 Subject: [PATCH] Cron update --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd961fd..7adf03c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,9 +112,9 @@ RUN curl -o grav-admin.zip -SLk https://getgrav.org/download/core/grav-admin/${G RUN cd /var/www/html && bin/gpm -y update # Create cron job for Grav maintenance scripts -RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -u apache - +RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab - # Cron requires that each entry in a crontab end in a newline character. If the last entry in a crontab is missing the newline, cron will consider the crontab (at least partially) broken and refuse to install it. -RUN (crontab -l; echo "") | crontab -u apache - +RUN (crontab -l; echo "") | crontab - # Accept incoming HTTP requests EXPOSE 80