diff options
| author | Ahmed <git@gumx.cc> | 2026-06-14 16:30:47 +0300 |
|---|---|---|
| committer | Ahmed <git@gumx.cc> | 2026-06-14 16:30:47 +0300 |
| commit | 307ff4912bac1095ebf382d70241f19409b2f8b8 (patch) | |
| tree | a2c3d36634fa86705e48db4fc797437ba816e5e0 /hooks/post-receive | |
| parent | fa568e13d04c0aacdb29ca252b783f1dcdb6bf23 (diff) | |
add: templating
Diffstat (limited to 'hooks/post-receive')
| -rw-r--r-- | hooks/post-receive | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100644 index 0000000..aa142ed --- /dev/null +++ b/hooks/post-receive @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +WORK=/home/git/build/sites + +cd "$WORK" +python3 _shared/build.py . + +for SITE in irc.gumx.cc vpn.gumx.cc mail.gumx.cc pgp.gumx.cc wk.fo twt.gumx.cc files.gumx.cc demo.gumx.cc; do + if [ -d "$SITE" ]; then + WEBROOT="/var/www/$SITE" + mkdir -p "$WEBROOT" + rsync -rlptD --delete --exclude="/fonts" "$SITE/" "$WEBROOT/" + mkdir -p "$WEBROOT/fonts" + rsync -rlptD fonts/ "$WEBROOT/fonts/" + fi +done + +echo "sites deployed" |
