diff options
author | Henare Degan <henare.degan@gmail.com> | 2012-09-20 14:59:09 +1000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-20 09:14:49 +0100 |
commit | 789e3b8c489749c7765c780708e68f53c8805dfe (patch) | |
tree | 07efc9896a3acd2e1c0a7c1a4d30b124d9f9e6b8 | |
parent | de47f6b7683569bb238809b6cca422aa3c76af9b (diff) |
Add a note about how to allow these commands to be run with elevated privileges by a luser
-rw-r--r-- | doc/INSTALL.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/INSTALL.md b/doc/INSTALL.md index 49491a337..60be4b5dc 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -326,7 +326,11 @@ which lives in `config/alert-tracks-debian.ugly`. As with the cron jobs above, replace the variables (and/or bits near the variables) with paths to your software. `config/purge-varnish-debian.ugly` is a similar init script, which is optional and not required if you choose -not to run your site behind Varnish (see below). +not to run your site behind Varnish (see below). Add the following line to your +sudoers file to allow these to be run by your deploy user (named `deploy` in +this case): + + deploy ALL = NOPASSWD: /etc/init.d/foi-alert-tracks, /etc/init.d/foi-purge-varnish The cron jobs refer to a program `run-with-lockfile`. See [this issue](https://github.com/mysociety/alaveteli/issues/112) for a |