cronjob, ensure the hugo executable can be found since it's being compiled now.
This commit is contained in:
1 parent
a9738b84fd
commit
6ffae6e041
1 file changed
+1
-4
@@ -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
|
||||
Reference in new issue
Block a user