Adds post-update hook to repo, since it lives in .git, making it invisible.
authordsc <david.schoonover@gmail.com>
Thu, 30 Dec 2010 06:15:35 +0000 (22:15 -0800)
committerdsc <david.schoonover@gmail.com>
Thu, 30 Dec 2010 06:15:35 +0000 (22:15 -0800)
git-hooks/post-update [new file with mode: 0755]

diff --git a/git-hooks/post-update b/git-hooks/post-update
new file mode 100755 (executable)
index 0000000..8505dfd
--- /dev/null
@@ -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!"