Commit 8c00c35aa545ecf838ed358222f39247a7830425

Authored by Victor Costa
1 parent e57ddb45

community_hub: fix hub updater script

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'