From cdf30a4431b09918a9b17280868585844bb61df7 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 6 Oct 2008 18:51:21 +0000 Subject: [PATCH] fixed xcatconfig file so that syslog works on AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2288 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index bba5acd07..5e590b237 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -718,6 +718,19 @@ if ((!-r "/etc/xcat/policy.sqlite") || $::FORCE) } } +# Make this system a management node +my $cmd = "/bin/touch /etc/xCATMN"; +my $outref = xCAT::Utils->runcmd("$cmd", 0); +if ($::RUNCMD_RC != 0) +{ + xCAT::MsgUtils->message('E', "Could not create /etc/xCATMN file.\n"); +} +else +{ + xCAT::MsgUtils->message('I', "Created /etc/xCATMN file.\n"); +} + + # # set up syslog # @@ -910,18 +923,6 @@ else "Copied $::root/.xcat/* to /install/postscripts/_xcat directory.\n"); } -# Make this system a management node -my $cmd = "/bin/touch /etc/xCATMN"; -my $outref = xCAT::Utils->runcmd("$cmd", 0); -if ($::RUNCMD_RC != 0) -{ - xCAT::MsgUtils->message('E', "Could not create /etc/xCATMN file.\n"); -} -else -{ - xCAT::MsgUtils->message('I', "Created /etc/xCATMN file.\n"); -} - # # if there are xcatd processes then stop them #