diff options
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" |
