diff options
author | Robin Houston <robin@lenny.robin> | 2011-06-14 23:32:58 +0100 |
---|---|---|
committer | Robin Houston <robin@lenny.robin> | 2011-06-14 23:32:58 +0100 |
commit | 6bef246b141a69e9eccdb74272d2b57fb48998a0 (patch) | |
tree | b3915058d2758fb2468fc633f6a73486e1483c95 /script/runner | |
parent | b7ab112a02f234c0d70dd126cb929a9031a0f08c (diff) |
Make the script runner change to the application directory, in an attempt to fix the locale-related errors being reported by cron
Diffstat (limited to 'script/runner')
-rwxr-xr-x | script/runner | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/script/runner b/script/runner index e5f52ff8e..e6b09cfe5 100755 --- a/script/runner +++ b/script/runner @@ -1,5 +1,9 @@ #!/usr/bin/ruby -#!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/boot' -require 'commands/runner'
\ No newline at end of file +script_dir = File.dirname(__FILE__) +alaveteli_dir = File.join(script_dir, "..") + +Dir.chdir(alaveteli_dir) do + require File.dirname(__FILE__) + '/../config/boot' + require 'commands/runner' +end |