[Xfce4-commits] <xfce-git-hooks:master> add post-update hook to pull www changes on server
Brian J. Tarricone
noreply at xfce.org
Sat Oct 24 21:50:02 CEST 2009
Updating branch refs/heads/master
to 5c3130cf469e2cd78677682622bbf5c89c457261 (commit)
from 0d4f7a7942438b1b2519b7f4d0688d391628c1ff (commit)
commit 5c3130cf469e2cd78677682622bbf5c89c457261
Author: Brian J. Tarricone <brian at tarricone.org>
Date: Sat Oct 24 12:48:00 2009 -0700
add post-update hook to pull www changes on server
hooks/post-update-03-www-pull | 11 +++++++++++
post-update | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/hooks/post-update-03-www-pull b/hooks/post-update-03-www-pull
new file mode 100755
index 0000000..caf93c9
--- /dev/null
+++ b/hooks/post-update-03-www-pull
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "$REPO" in
+ wiki.xfce.org)
+ GIT_DIR=/var/www/wiki.xfce.org/.git git pull
+ ;;
+
+ www.xfce.org)
+ GIT_DIR=/var/www/xfce.org/.git git pull
+ ;;
+esac
diff --git a/post-update b/post-update
index 92a20ed..eede74c 100755
--- a/post-update
+++ b/post-update
@@ -14,3 +14,4 @@ unset parent path
$XFCE_GIT_HOOK_DIR/hooks/post-update-01-server-info
$XFCE_GIT_HOOK_DIR/hooks/post-update-02-buildbot
+$XFCE_GIT_HOOK_DIR/hooks/post-update-03-www-pull
More information about the Xfce4-commits
mailing list