BlogAlba/.githooks/post-receive

5 lines
282 B
Plaintext
Raw Normal View History

2015-03-09 00:21:47 +00:00
#!/bin/sh
cat > /dev/null
git --git-dir /home/sites/blogalba/.git --work-tree /home/sites/blogalba pull
[ ! -z "$(find /home/sites/blogalba -type d -name .git -prune -o -type f -mmin -1 -print|grep 'blogalba$')" ] && echo "Restarting blogalba" && /home/sites/blogalba/scripts/start