blogalba should restart when posts/pages are modified as well as when it is modified itself, because i am lazy and caching is effort
This commit is contained in:
parent
d0925b2f11
commit
c95f075893
|
@ -1,4 +1,4 @@
|
|||
#!/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
|
||||
[ ! -z "$(find /home/sites/blogalba -type d -name .git -prune -o -type f -mmin -1 -print|egrep '(p(ost|age)s/|blogalba$)')" ] && echo "Restarting blogalba" && /home/sites/blogalba/scripts/start
|
||||
|
|
Loading…
Reference in New Issue