Gareth's Blog‎ > ‎

Git for configuration Management

posted 23 Jun 2014, 11:51 by Gareth Rylance
Create a hooks/post-receive in a bare git repository.

#!/bin/sh
dir=the location of the repo
--work-tree=/etc/freeswitch/ the place to checkout the config to
git --work-tree=/etc/freeswitch/ --git-dir=/home/pi/repo/freeswitch.conf.git checkout -f

#Restart the service you just updated
service freeswitch restart

Comments