From 31cb28a25ed081266f014ac78d48e04b1fa42344 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 29 Dec 2010 22:15:35 -0800 Subject: [PATCH] Adds post-update hook to repo, since it lives in .git, making it invisible. --- git-hooks/post-update | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100755 git-hooks/post-update 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!" -- 1.7.0.4