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:
Matthew Connelly 2015-03-09 00:31:38 +00:00
parent d0925b2f11
commit c95f075893
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
cat > /dev/null cat > /dev/null
git --git-dir /home/sites/blogalba/.git --work-tree /home/sites/blogalba pull 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