Browse Source

changed to locale hugo_cachedir by using --cacheDir

master
Chris 5 years ago
parent
commit
ed28d29e9b
  1. 3
      admin/generate.sh

3
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

Loading…
Cancel
Save