projects
/
tanks-wiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2b9d6d5
)
Adds post-update hook to repo, since it lives in .git, making it invisible.
author
dsc
<david.schoonover@gmail.com>
Thu, 30 Dec 2010 06:15:35 +0000 (22:15 -0800)
committer
dsc
<david.schoonover@gmail.com>
Thu, 30 Dec 2010 06:15:35 +0000 (22:15 -0800)
git-hooks/post-update
[new file with mode: 0755]
patch
|
blob
diff --git a/git-hooks/post-update
b/git-hooks/post-update
new file mode 100755
(executable)
index 0000000..
8505dfd
--- /dev/null
+++ b/
git-hooks/post-update
@@ -0,0
+1,9
@@
+#!/bin/bash
+#
+# Updates and rebuilds the wiki.
+
+echo "Updating wiki..."
+echo
+sudo -u tanks /bin/bash -l -c 'cd /home/tanks/wiki && git pull && markdoc build'
+echo
+echo "Wiki rebuilt!"