aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-03-12 10:53:02 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-03-12 10:53:02 +0000
commit3fd2f5f3c485c360aad8bdb340c7934abcdd2c3b (patch)
tree3b3143232cfb58b792d76b20081db22a60c86c7c
parentd3b2eb149ccb22145cfda3b1eccf6ef6e6bcbd22 (diff)
Couple of zurich/zueri misses.
-rw-r--r--conf/crontab.ugly5
-rwxr-xr-xperllib/CronFns.pm2
2 files changed, 5 insertions, 2 deletions
diff --git a/conf/crontab.ugly b/conf/crontab.ugly
index 4eb6d5a26..c85d3f119 100644
--- a/conf/crontab.ugly
+++ b/conf/crontab.ugly
@@ -25,14 +25,17 @@ my @sending = qw(
demo.fixmybarangay.com
www.fixmybarangay.com
zurich.fixmystreet.staging.mysociety.org
+ www.zueriwieneu.ch
seesomething.mysociety.org
);
my @no_alerts = qw(
zurich.fixmystreet.staging.mysociety.org
+ www.zueriwieneu.ch
seesomething.mysociety.org
);
my @no_open311 = qw(
zurich.fixmystreet.staging.mysociety.org
+ www.zueriwieneu.ch
seesomething.mysociety.org
);
my %sending = map { $_ => 1 } @sending;
@@ -75,6 +78,6 @@ my %no_alerts = map { $_ => 1 } @no_alerts;
43 2 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/problem-creation-graph
00 8 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/check-for-zombies !!(*= $user *)!!
-!!(* if ($vhost =~ /zurich/) { *)!!
+!!(* if ($vhost =~ /zurich|zueri/) { *)!!
30 0 * * * !!(*= $user *)!! /data/vhost/!!(*= $vhost *)!!/fixmystreet/bin/cron-wrapper zurich-overdue-alert
!!(* } *)!!
diff --git a/perllib/CronFns.pm b/perllib/CronFns.pm
index 878482339..ac7f85596 100755
--- a/perllib/CronFns.pm
+++ b/perllib/CronFns.pm
@@ -36,7 +36,7 @@ sub site {
my $base_url = shift;
my $site = 'fixmystreet';
$site = 'emptyhomes' if $base_url =~ 'emptyhomes';
- $site = 'zurich' if $base_url =~ 'zurich';
+ $site = 'zurich' if $base_url =~ /zurich|zueri/;
return $site;
}