From a276681127807ded27837e3fac39c9763d8b9ada Mon Sep 17 00:00:00 2001 From: Mike Scherbakov Date: Sat, 2 Feb 2013 17:29:37 +0400 Subject: [PATCH] [agent] Disabled for root check as it breakes the work of agent. --- agent | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/agent b/agent index 196d273..6b2fd5e 100755 --- a/agent +++ b/agent @@ -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"