From 8c00c35aa545ecf838ed358222f39247a7830425 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 18 Dec 2014 18:21:51 -0300 Subject: [PATCH] community_hub: fix hub updater script --- plugins/community_hub/script/hub_updater | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/community_hub/script/hub_updater b/plugins/community_hub/script/hub_updater index e6531f0..6f398ca 100755 --- a/plugins/community_hub/script/hub_updater +++ b/plugins/community_hub/script/hub_updater @@ -4,9 +4,11 @@ require 'daemons' require 'optparse' NOOSFERO_ROOT = File.expand_path(File.dirname(__FILE__) + '/../../../') -require NOOSFERO_ROOT + '/config/environment' Daemons.run_proc('hub') do + Dir.chdir NOOSFERO_ROOT + require './config/environment' + unless ENV['PROXY'].blank? ENV['NO_PROXY'] ||= 'localhost' require 'proxifier/env' -- libgit2 0.21.2