Skip to content

Commit

Permalink
Adjust cron
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Dec 28, 2023
1 parent f447a90 commit 646bbb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CRON.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ RUN touch /var/log/cron.log \
#SHELL ["/bin/bash", "-o", "pipefail", "-c"]
#RUN (crontab -l -u www-data; echo "* * * * * su -c '/usr/local/bin/php /app/public/admin/cli/cron.php >&1'") | crontab
COPY ./config/cron/crontab.txt /etc/cron.d/moodle-cron
RUN chmod 0644 /etc/cron.d/moodle-cron \
&& crontab /etc/cron.d/moodle-cron
RUN chown www-data:crontab /etc/cron.d/moodle-cron
RUN chmod 0644 /etc/cron.d/moodle-cron
RUN crontab /etc/cron.d/moodle-cron

CMD ["sh", "-c", "cron && tail -f /dev/null"]

0 comments on commit 646bbb4

Please sign in to comment.