diff --git a/admin/generate.sh b/admin/generate.sh index c9f3892..4c693b2 100755 --- a/admin/generate.sh +++ b/admin/generate.sh @@ -39,7 +39,6 @@ TMPGIT_POSTS=$GENDIR/kollegen-posts GIT_HUGO=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-hugo.git GIT_POSTS=https://kollegen.uber.space/gitea/kollegenrunde/kollegen-posts.git - # Log a text file content log_file () { cat $1 @@ -123,7 +122,7 @@ fi # Hugo anschmeißen log "Starting hugo" -cd $TMPGIT_HUGO && $HUGO --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR +cd $TMPGIT_HUGO && $HUGO --cacheDir=$HOME/tmp/hugo_cache --destination $TMPPUBLIC > $TMPLOG 2> $TMPERR if [ -f $TMPLOG ] then