X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=share%2Fdeploy%2Fgit%2Fpost-update;h=43d16738f4c3b4840aabf111b82057700edf9485;hb=c2025d92b2f82148d4feba2130f1f9b15f29e6b8;hp=f6df52003da25962365100110e4751296515982c;hpb=29bd3b913e29d594893e25ceb02dbd8150cf3c81;p=p5sagit%2FOyster.git diff --git a/share/deploy/git/post-update b/share/deploy/git/post-update index f6df520..43d1673 100755 --- a/share/deploy/git/post-update +++ b/share/deploy/git/post-update @@ -1,4 +1,14 @@ #!/bin/sh +# This rather relies on being an account with permission to do this. +# Who does the script run as? Presumably the owner of the repo as git will +# use ssh-keys to get onto the server. +# +# Realistically that user needs to be put in /etc/sudoers +# +# user ALL=NOPASSWD: /etc/init.d/apache +# +# And also the command below should be prefixed by sudo + # Restart server /etc/init.d/apache graceful