summaryrefslogtreecommitdiffstats
path: root/hooks/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/post-receive')
-rw-r--r--hooks/post-receive10
1 files changed, 9 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index fe4f5f6..25ae829 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -22,7 +22,14 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f
;;
demo.gumx.cc)
# no-style-please/ is managed by zola-no-style-please repo; demos.json is a source file
- rsync -rlptD --delete --exclude='/fonts' --exclude='/no-style-please/' --exclude='/demos.json' "$SITE/" "$WEBROOT/"
+ # /ccc/ and /styles/ are managed by ccc repo hook — do not delete
+ rsync -rlptD --delete \
+ --exclude='/fonts' \
+ --exclude='/no-style-please/' \
+ --exclude='/demos.json' \
+ --exclude='/ccc/' \
+ --exclude='/styles/' \
+ "$SITE/" "$WEBROOT/"
;;
*)
rsync -rlptD --delete --exclude='/fonts' "$SITE/" "$WEBROOT/"
@@ -30,6 +37,7 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f
esac
mkdir -p "$WEBROOT/fonts"
rsync -rlptD fonts/ "$WEBROOT/fonts/"
+ cp _shared/favicon.svg "$WEBROOT/favicon.svg"
cp _shared/404.html "$WEBROOT/404.html"
fi
done