Using the crontab command adds the job to root's jobs. Allow cron to pick up the file automatically by not running any explicit calls.

This commit is contained in:
2025-08-17 11:43:54 -07:00
parent cfb07a6e93
commit e86660d34e

View File

@@ -17,9 +17,8 @@ RUN mkdir -pv /var/www/hugo/
RUN mkdir -pv /var/www/html/ RUN mkdir -pv /var/www/html/
# Copy Cron Job to Update Git Repo # Copy Cron Job to Update Git Repo
COPY files/hugo.crontab /etc/cron.d/hugo COPY files/hugo.crontab /etc/crontab
COPY files/hugo.cronjob.sh /var/www/hugo/cronjob.sh COPY files/hugo.cronjob.sh /var/www/hugo/cronjob.sh
RUN crontab /etc/cron.d/hugo
# Hugo User Permissions # Hugo User Permissions
RUN chown -Rv www-data:www-data /var/www/ RUN chown -Rv www-data:www-data /var/www/