From: dsc Date: Thu, 30 Dec 2010 06:15:35 +0000 (-0800) Subject: Adds post-update hook to repo, since it lives in .git, making it invisible. X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=31cb28a25ed081266f014ac78d48e04b1fa42344;p=tanks-wiki.git Adds post-update hook to repo, since it lives in .git, making it invisible. --- diff --git a/git-hooks/post-update b/git-hooks/post-update new file mode 100755 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!"