From 65b57a71ae607f8cf06a30c4225c711fea970350 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 5 Jun 2017 15:37:20 +0200 Subject: [PATCH] Cleanup post-receive hook --- hooks/post-receive | 1 - 1 file changed, 1 deletion(-) diff --git a/hooks/post-receive b/hooks/post-receive index fd11107..89a1105 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -13,7 +13,6 @@ rsync -aqz ${PUBLIC_WWW}/ $BACKUP_WWW trap "echo 'A problem occurred. Reverting to backup.'; rsync -aqz --del $BACKUP_WWW/ $PUBLIC_WWW; rm -rf $WORKING_DIRECTORY" EXIT git clone --recursive $GIT_REPO $WORKING_DIRECTORY -# cd $WORKING_DIRECTORY && git submodule update --init --recursive --remote rm -rf $PUBLIC_WWW/* $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" \;