From 6ffae6e04166799e21221753df6c1e33df5d8b72 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Tue, 27 Oct 2026 19:32:46 -0700 Subject: [PATCH] cronjob, ensure the hugo executable can be found since it's being compiled now. --- Config/HugoExample/files/cronjob.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Config/HugoExample/files/cronjob.sh b/Config/HugoExample/files/cronjob.sh index d0481e5..cd43789 100644 --- a/Config/HugoExample/files/cronjob.sh +++ b/Config/HugoExample/files/cronjob.sh @@ -16,6 +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 status="$?" echo "* Hugo status is '$status', FORCE is '$FORCE'." @@ -26,7 +27,3 @@ if [[ $status == 0 && -e public/index.html ]]; then fi exit 0 -ww/html/ -fi - -exit 0