5 lines
298 B
Bash
Executable File
5 lines
298 B
Bash
Executable File
#!/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|egrep '(p(ost|age)s/|blogalba$)')" ] && echo "Restarting blogalba" && /home/sites/blogalba/scripts/start
|