Fix crontab inclusion

This commit is contained in:
madmaurice 2017-09-10 13:13:34 +02:00 committed by Hive
parent 47f6479c40
commit 9e0beb46aa
2 changed files with 3 additions and 2 deletions

View file

@ -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"]

View file

@ -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