diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-08-22 08:17:16 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-08-22 08:17:16 +0100 |
commit | 17e2024962b84f759b1f2bfb13564d6626f0d6f0 (patch) | |
tree | 70c20452176bfce76ef5a34b698e6ac615f66c23 /script/make-crontab | |
parent | e3887f042ba1309985e58ce553de0de05227dc56 (diff) | |
parent | 19d6e36039318cdb1f9aa9e0c4731b500b3b0aeb (diff) |
Merge branch 'release/0.6.3' into wdtk
Conflicts:
app/controllers/admin_request_controller.rb
app/views/request/show.rhtml
spec/models/info_request_spec.rb
Diffstat (limited to 'script/make-crontab')
-rwxr-xr-x | script/make-crontab | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/make-crontab b/script/make-crontab new file mode 100755 index 000000000..1b4fbabbd --- /dev/null +++ b/script/make-crontab @@ -0,0 +1,16 @@ +#!/usr/bin/env python +import re + +mailto = "recipient-of-any-errors@localhost" +user = "user-to-run-as" +location = "/path/to/alaveteli" + +template = open("config/crontab.ugly").read() +template = re.sub(r"MAILTO=.*", "MAILTO=%s" % mailto, template) +template = template.replace("!!(*= $user *)!!", user) +template = re.sub(r"/data/vhost/.*/script", location + "/script", template) + +print template + + + |