mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 13:40:17 +00:00
15 lines
244 B
Bash
15 lines
244 B
Bash
#!/bin/bash
|
|
export RUNNING="/dev/shm/www_is_running"
|
|
|
|
if [ -f $RUNNING ]; then
|
|
echo "www is currently running."
|
|
exit 1
|
|
else
|
|
touch $RUNNING
|
|
cd /var/www/thunix.cf
|
|
/usr/bin/git pull
|
|
touch /dev/shm/www-hook-last-run
|
|
rm $RUNNING
|
|
exit 0
|
|
fi
|