3 # This rather relies on being an account with permission to do this.
4 # Who does the script run as? Presumably the owner of the repo as git will
5 # use ssh-keys to get onto the server.
7 # Realistically that user needs to be put in /etc/sudoers
9 # user ALL=NOPASSWD: /etc/init.d/apache
11 # And also the command below should be prefixed by sudo
14 /etc/init.d/apache graceful