From da161000c9409ac262b9bdcc5eacae82f69ae915 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 13 May 2011 13:28:04 +0000 Subject: [PATCH] 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 --- xCAT-client/bin/updatenode | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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($>);