From 9e0beb46aaeb9f23ffc277a92f7ce512c076f5c6 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sun, 10 Sep 2017 13:13:34 +0200 Subject: [PATCH] Fix crontab inclusion --- webservice/Dockerfile | 4 ++-- webservice/crontab | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/webservice/Dockerfile b/webservice/Dockerfile index 2c6a7b5..5bf7d7e 100644 --- a/webservice/Dockerfile +++ b/webservice/Dockerfile @@ -82,11 +82,11 @@ RUN \ rm /tmp/nextcloud.tar.bz2 # Add supervisor and cron config -ADD crontab /etc/crontab +ADD crontab /opt/crontab ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf ADD update-htaccess.sh /update-htaccess.sh -RUN chmod +x /update-htaccess.sh +RUN crontab /opt/crontab && chmod +x /update-htaccess.sh VOLUME ["/var/www/html/config","/var/www/html/data"] diff --git a/webservice/crontab b/webservice/crontab index 2c2e9fb..23f1bb0 100644 --- a/webservice/crontab +++ b/webservice/crontab @@ -1,5 +1,6 @@ # Running cron.php SHELL=/bin/sh +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # Run cron.php every 15 minutes */15 * * * * cd /var/www/html && sudo -u www-data php ./cron.php