From e86660d34e198d6e95fad33a4ede67575774c90b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 17 Aug 2025 11:43:54 -0700 Subject: [PATCH] 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. --- Config/HugoExample/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Config/HugoExample/Dockerfile b/Config/HugoExample/Dockerfile index 778195b..510f709 100644 --- a/Config/HugoExample/Dockerfile +++ b/Config/HugoExample/Dockerfile @@ -17,9 +17,8 @@ RUN mkdir -pv /var/www/hugo/ RUN mkdir -pv /var/www/html/ # 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 -RUN crontab /etc/cron.d/hugo # Hugo User Permissions RUN chown -Rv www-data:www-data /var/www/