mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-25 13:40:17 +00:00
Adding wiki githook stuff
This commit is contained in:
14
roles/webserver/files/wiki-run
Normal file
14
roles/webserver/files/wiki-run
Normal 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
|
||||
Reference in New Issue
Block a user