BlogAlba/.githooks/post-receive

7 lines
267 B
Bash
Executable File

#!/bin/sh
cat > /dev/null
BASE=/usr/home/sites; export BASE; APP=blogalba; export APP
git --git-dir $BASE/$APP/.git --work-tree $BASE/$APP pull
git --git-dir $BASE/$APP.mirror.git fetch
git --git-dir $BASE/$APP.mirror.git push
echo "Restarting $APP"; $BASE/$APP/start