From 391b97d194aa2aedd946a3a0ac6e4f12f291a89d Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 30 Mar 2009 12:21:48 +0000 Subject: [PATCH] fix repeated errors Request matched no policy rule: getbladecon git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3043 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/cons/blade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/cons/blade b/xCAT-server/share/xcat/cons/blade index 6bcce2e21..e0dc77167 100755 --- a/xCAT-server/share/xcat/cons/blade +++ b/xCAT-server/share/xcat/cons/blade @@ -37,7 +37,11 @@ BEGIN } my $sleepint=int(rand(10)); #Stagger start to avoid overwhelming conserver/xCATd use lib "$::XCATROOT/lib/perl"; -$ENV{HOME}='/root/'; +if ($^O =~ /^linux/i){ + $ENV{HOME}='/root/'; +} else { + $ENV{HOME}='/'; +} require xCAT::Client; #require xCAT::Table;