Commit | Line | Data |
---|---|---|
ce3563dd | 1 | #!/bin/sh |
2 | ||
c2025d92 | 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 | ||
ce3563dd | 13 | # Restart server |
14 | /etc/init.d/apache graceful |