[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 'yaml'
unless /^root$/.match ENV['USER']
puts "You must be root"
exit 1
end
# The following check doesn't pass on bootstrap,
# and node will not be discovered. Disabling this
# until issue is found and resolved.
#unless /^root$/.match ENV['USER']
#puts "You must be root"
#exit 1
#end
AGENT_CONFIG = "/etc/nailgun-agent/config.yaml"