From 84039c005e993d31e6d35f8eea6ba90ad3dbe347 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 27 Oct 2026 20:20:21 -0700 Subject: [PATCH] hugo, add explicit path to cronjob. --- Config/HugoExample/files/cronjob.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Config/HugoExample/files/cronjob.sh b/Config/HugoExample/files/cronjob.sh index cd43789..4f541b5 100644 --- a/Config/HugoExample/files/cronjob.sh +++ b/Config/HugoExample/files/cronjob.sh @@ -16,8 +16,7 @@ if [[ $status != 0 && -e /var/www/html/index.html && -z $FORCE ]]; then fi # If the project was not already up to date, build the new files for NGINX. -export PATH="/usr/local/bin:$PATH" -hugo --gc --minify +/usr/local/bin/hugo --gc --minify status="$?" echo "* Hugo status is '$status', FORCE is '$FORCE'." if [[ $status == 0 && -e public/index.html ]]; then