aboutsummaryrefslogtreecommitdiffstats
path: root/setenv.pl
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-10 14:48:22 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-10 14:48:22 +0100
commit860383f0de3287b0666d64a3ffff3db3a0f087ae (patch)
tree6bc90fae589de824095e668fbf510ef259935729 /setenv.pl
parent40f13d3cc9dc903da5299901623677c205eff484 (diff)
Update crontab to use cron-wrapper.
Diffstat (limited to 'setenv.pl')
-rwxr-xr-xsetenv.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/setenv.pl b/setenv.pl
index 4564017bf..2916a2c8a 100755
--- a/setenv.pl
+++ b/setenv.pl
@@ -10,7 +10,7 @@ my $root;
BEGIN { # add the local perllibs too
# Can't use Path::Class here as we'd load the old debian one.
- $root = __FILE__ =~ m{^(.*)/web/\.\..*$} ? $1 : `pwd`;
+ $root = __FILE__ =~ m{^(.*)/(web|bin)/\.\..*$} ? $1 : `pwd`;
chomp($root);
}