[agent] Disabled for root check as it breakes the work of agent.

This commit is contained in:
Mike Scherbakov 2013-02-02 17:29:37 +04:00
parent c06ebd9247
commit a276681127
1 changed files with 7 additions and 4 deletions

11
agent
View File

@ -11,10 +11,13 @@ require 'logger'
require 'optparse' require 'optparse'
require 'yaml' require 'yaml'
unless /^root$/.match ENV['USER'] # The following check doesn't pass on bootstrap,
puts "You must be root" # and node will not be discovered. Disabling this
exit 1 # until issue is found and resolved.
end #unless /^root$/.match ENV['USER']
#puts "You must be root"
#exit 1
#end
AGENT_CONFIG = "/etc/nailgun-agent/config.yaml" AGENT_CONFIG = "/etc/nailgun-agent/config.yaml"