BlogAlba/.githooks/post-receive

7 lines
267 B
Plaintext
Raw Permalink Normal View History

2015-03-09 00:21:47 +00:00
#!/bin/sh
cat > /dev/null
2015-11-15 23:32:35 +00:00
BASE=/usr/home/sites; export BASE; APP=blogalba; export APP
git --git-dir $BASE/$APP/.git --work-tree $BASE/$APP pull
2015-11-15 23:57:22 +00:00
git --git-dir $BASE/$APP.mirror.git fetch
git --git-dir $BASE/$APP.mirror.git push
2015-11-15 23:32:35 +00:00
echo "Restarting $APP"; $BASE/$APP/start