From 8d21d493ac33aa09ada17ad70bed7a57fe8a7c25 Mon Sep 17 00:00:00 2001 From: Andrei Condurachi Date: Tue, 24 Nov 2020 15:39:04 +0200 Subject: [PATCH] Crontab update for apache --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 522cbe5..5c514c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -125,9 +125,9 @@ RUN sed -i 's/SYSLOGD_OPTS="-Z"/SYSLOGD_OPTS="-t"/g' /etc/conf.d/syslog RUN rc-update add php-fpm7 default # 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 - +RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/bin/php bin/grav scheduler 1>> /dev/null 2>&1") | crontab -u apache # 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 - +RUN (crontab -l; echo "") | crontab -u apache # Provide container inside image for data persistence VOLUME ["/var/www"]