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 #