Add support to updatenode to sync only service nodes

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-05-13 13:28:04 +00:00
parent d85a25f876
commit da161000c9

View File

@ -11,6 +11,7 @@ use File::Basename;
use xCAT::Client;
use xCAT::MsgUtils;
use xCAT::Usage;
use strict;
sub updatenode_usage
{
@ -75,6 +76,7 @@ if (
'v|version' => \$::VERSION,
'V|verbose' => \$::VERBOSE,
'F|sync' => \$::FILESYNC,
'f|snsync' => \$::SNFILESYNC,
'S|sw' => \$::SWMAINTENANCE,
's|sn' => \$::SETSERVER,
'P|scripts:s' => \$::RERUNPS,
@ -90,7 +92,7 @@ if (
if ($::HELP)
{
&updatenode_usage($callback);
&updatenode_usage();
exit 0;
}
@ -101,6 +103,11 @@ if ($::VERSION)
print "$version\n";
exit 0;
}
if (($::FILESYNC) && ($::SNFILESYNC)){ # only one
my $msg = "Choose either -f to sync the service nodes, or -F to sync the nodes not both.";
xCAT::MsgUtils->message("E", $msg);
exit 1;
}
my $current_userid = getpwuid($>);