aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-05-15 22:43:41 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-05-15 22:43:41 +0100
commit1ba0a33c9fa19f2fa46f16678785d1c90ed33eb0 (patch)
treecb9be4fcf30343dc22041f1f663f5df1d22cfb75
parent2087ef326b3d031a5b54f61a400919bda41f28bb (diff)
Have crontab mail set more appropriately on non-live sites.
-rw-r--r--conf/crontab.ugly4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf/crontab.ugly b/conf/crontab.ugly
index 42e293c55..f7a08b163 100644
--- a/conf/crontab.ugly
+++ b/conf/crontab.ugly
@@ -7,7 +7,11 @@
# $Id: crontab.ugly,v 1.23 2010-01-07 10:32:24 louise Exp $
PATH=/usr/local/bin:/usr/bin:/bin
+!!(* if ($vhost eq 'www.fixmystreet.com' || $vhost eq 'reportemptyhomes.com') { *)!!
MAILTO=cron-!!(*= $site *)!!@mysociety.org
+!!(* } else { *)!!
+MAILTO=!!(*= $user *)!!@mysociety.org
+!!(* } *)!!
# On only one server
!!(* if ($vhost eq 'reportemptyhomes.com') { *)!!