From: Paul Tipper Date: Sat, 20 Nov 2010 17:27:48 +0000 (+0000) Subject: Notes on user config and how stuff should be setup, re: sudo X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c2025d92b2f82148d4feba2130f1f9b15f29e6b8;p=p5sagit%2FOyster.git Notes on user config and how stuff should be setup, re: sudo --- 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