diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-08-01 14:39:18 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-08-01 14:39:18 +0100 |
commit | 67a3a43cc26f8ad7218f33a13af04c3c74347866 (patch) | |
tree | 3fc5f27905332ba4647915eb5823d3d37615fe4c /script/make-crontab | |
parent | c1d2580892033d28ff05f3d47cee78aaef963c29 (diff) | |
parent | cc3268df4c9de319ea16aa99238e3c4c40dae7c5 (diff) |
Merge branch 'develop' into wdtk
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 + + + |