summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-14 18:47:08 +0300
committerAhmed <git@gumx.cc>2026-06-14 18:47:08 +0300
commit38a1e1ea2801d0a4c7b3b5d3547ee1f87cefc136 (patch)
tree2ceba67adeab5491f5c8db9d4897847eb4358752
parent307ff4912bac1095ebf382d70241f19409b2f8b8 (diff)
fix: exclude twtxt.txt from hook update
-rw-r--r--hooks/post-receive18
1 files changed, 17 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index aa142ed..13e562e 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -10,7 +10,23 @@ for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc f
if [ -d "$SITE" ]; then
WEBROOT="/var/www/$SITE"
mkdir -p "$WEBROOT"
- rsync -rlptD --delete --exclude="/fonts" "$SITE/" "$WEBROOT/"
+ case "$SITE" in
+ irc.gumx.cc)
+ # bots/ is managed by irc-bots repo
+ rsync -rlptD --delete --exclude='/fonts' --exclude='/bots/' "$SITE/" "$WEBROOT/"
+ ;;
+ twt.gumx.cc)
+ # twtxt.txt is written by alfred/twt.sh, not tracked in this repo
+ rsync -rlptD --delete --exclude='/fonts' --exclude='/twtxt.txt' "$SITE/" "$WEBROOT/"
+ ;;
+ 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/"
+ ;;
+ *)
+ rsync -rlptD --delete --exclude='/fonts' "$SITE/" "$WEBROOT/"
+ ;;
+ esac
mkdir -p "$WEBROOT/fonts"
rsync -rlptD fonts/ "$WEBROOT/fonts/"
fi