diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index ad472e7f3..7d06c740d 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -67,6 +67,17 @@ else } chomp $::arch; chomp $::root; +# 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"); +} # some Linux-only config # (used to FTP postscripts to nodes) @@ -932,17 +943,6 @@ else } -# 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