diff --git a/xCAT-client/bin/updatenode b/xCAT-client/bin/updatenode index 900a6b102..df4a98072 100755 --- a/xCAT-client/bin/updatenode +++ b/xCAT-client/bin/updatenode @@ -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($>);