hugo, add explicit path to cronjob.
This commit is contained in:
1 parent
56aa206f5c
commit
84039c005e
1 file changed
+1
-2
@@ -16,8 +16,7 @@ if [[ $status != 0 && -e /var/www/html/index.html && -z $FORCE ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# If the project was not already up to date, build the new files for NGINX.
|
# If the project was not already up to date, build the new files for NGINX.
|
||||||
export PATH="/usr/local/bin:$PATH"
|
/usr/local/bin/hugo --gc --minify
|
||||||
hugo --gc --minify
|
|
||||||
status="$?"
|
status="$?"
|
||||||
echo "* Hugo status is '$status', FORCE is '$FORCE'."
|
echo "* Hugo status is '$status', FORCE is '$FORCE'."
|
||||||
if [[ $status == 0 && -e public/index.html ]]; then
|
if [[ $status == 0 && -e public/index.html ]]; then
|
||||||
|
|||||||
Reference in new issue
Block a user