Fix crontab inclusion
This commit is contained in:
parent
47f6479c40
commit
9e0beb46aa
2 changed files with 3 additions and 2 deletions
|
@ -82,11 +82,11 @@ RUN \
|
||||||
rm /tmp/nextcloud.tar.bz2
|
rm /tmp/nextcloud.tar.bz2
|
||||||
|
|
||||||
# Add supervisor and cron config
|
# Add supervisor and cron config
|
||||||
ADD crontab /etc/crontab
|
ADD crontab /opt/crontab
|
||||||
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
ADD update-htaccess.sh /update-htaccess.sh
|
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"]
|
VOLUME ["/var/www/html/config","/var/www/html/data"]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# Running cron.php
|
# Running cron.php
|
||||||
SHELL=/bin/sh
|
SHELL=/bin/sh
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
# Run cron.php every 15 minutes
|
# Run cron.php every 15 minutes
|
||||||
*/15 * * * * cd /var/www/html && sudo -u www-data php ./cron.php
|
*/15 * * * * cd /var/www/html && sudo -u www-data php ./cron.php
|
||||||
|
|
Loading…
Reference in a new issue