diff options
| -rw-r--r-- | hooks/post-receive | 18 |
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 |
