Adding wiki githook stuff

This commit is contained in:
Ubergeek
2019-06-28 16:24:59 +00:00
parent 4340424c75
commit f9b314f961
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
export RUNNING="/dev/shm/wiki_is_running"
if [ -f $RUNNING ]; then
echo "wiki is currently running."
exit 1
else
touch $RUNNING
cd /var/www/wiki.thunix.net
/usr/bin/git pull
touch /dev/shm/wiki-hook-last-run
rm $RUNNING
exit 0
fi