From b5994a2caf6998a32e6d52124c43db4f3259d8ad Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 5 Jun 2017 15:36:28 +0200 Subject: [PATCH] Update hook --- hooks/post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/post-receive b/hooks/post-receive index dceb8ea..fd11107 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -15,7 +15,7 @@ trap "echo 'A problem occurred. Reverting to backup.'; rsync -aqz --del $BACKUP git clone --recursive $GIT_REPO $WORKING_DIRECTORY # cd $WORKING_DIRECTORY && git submodule update --init --recursive --remote rm -rf $PUBLIC_WWW/* -hugo -s $WORKING_DIRECTORY -d ${PUBLIC_WWW} -b "https://${MY_DOMAIN}" +$HOME/.local/bin/hugo -s $WORKING_DIRECTORY -d ${PUBLIC_WWW} -b "https://${MY_DOMAIN}" find $PUBLIC_WWW -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' -o -name '*.xml' -o -name '*.svg' \) -exec gzip -v -k -f --best {} \; -exec touch -r {} "{}.gz" \; rm -rf $WORKING_DIRECTORY trap - EXIT