From 1c9b9ff7803ee2f60594a88d5b93713f9842ede0 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 9 Jan 2013 18:17:24 +0000 Subject: [PATCH] add sudo support in xdsh and updatenode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/updatenode | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/xCAT-client/bin/updatenode b/xCAT-client/bin/updatenode index e0795c1dc..277f39f02 100755 --- a/xCAT-client/bin/updatenode +++ b/xCAT-client/bin/updatenode @@ -106,10 +106,15 @@ if ($::HELP) &updatenode_usage(); exit 0; } -# disable -l option for now -if ($::USER) +if (($::USER) && ($::SECURITY)) { - my $msg = "-l option is not currently supported."; + my $msg = "-l option is not allowed with -k option."; + xCAT::MsgUtils->message("E", $msg); + exit 1; +} +if (($::USER) && (($::FILESYNC) || ($::SNFILESYNC))) +{ + my $msg = "-l option is not allowed with -F or -f options."; xCAT::MsgUtils->message("E", $msg); exit 1; }