Notes on user config and how stuff should be setup, re: sudo
[p5sagit/Oyster.git] / share / deploy / git / post-update
1 #!/bin/sh
2
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.
6
7 # Realistically that user needs to be put in /etc/sudoers
8 #
9 # user ALL=NOPASSWD: /etc/init.d/apache
10 #
11 # And also the command below should be prefixed by sudo
12
13 # Restart server
14 /etc/init.d/apache graceful