Commit eedf813bfaffb4cb656d0f142c00acd16c7b47a0

Authored by Victor Costa
2 parents eca1d860 8c00c35a

Merge branch 'hub-fixes' into stable

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
plugins/community_hub/script/hub_updater
@@ -4,9 +4,11 @@ require 'daemons' @@ -4,9 +4,11 @@ require 'daemons'
4 require 'optparse' 4 require 'optparse'
5 5
6 NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../') 6 NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../')
7 -require NOOSFERO_ROOT + '/config/environment'  
8 7
9 Daemons.run_proc('hub') do 8 Daemons.run_proc('hub') do
  9 + Dir.chdir NOOSFERO_ROOT
  10 + require './config/environment'
  11 +
10 unless ENV['PROXY'].blank? 12 unless ENV['PROXY'].blank?
11 ENV['NO_PROXY'] ||= 'localhost' 13 ENV['NO_PROXY'] ||= 'localhost'
12 require 'proxifier/env' 14 require 'proxifier/env'