Fix crontab inclusion

pull/1/head
madmaurice 5 years ago committed by Hive
parent 47f6479c40
commit 9e0beb46aa
  1. 4
      webservice/Dockerfile
  2. 1
      webservice/crontab

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

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

Loading…
Cancel
Save