add support for non-root user running updatenode -S
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d8c00c75fe
commit
b52a7f7ee5
@ -1520,23 +1520,27 @@ sub updatenodesoftware
|
||||
{
|
||||
$cmd =
|
||||
"$installdir/postscripts/xcatdsklspost 2 -M $snkey 'ospkgs,otherpkgs' --tftp $tftpdir" ;
|
||||
$args1 = [
|
||||
"--nodestatus",
|
||||
"-s",
|
||||
"-v",
|
||||
"-e",
|
||||
"$cmd"
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$cmd =
|
||||
"$installdir/postscripts/xcatdsklspost 2 -m $snkey 'ospkgs,otherpkgs' --tftp $tftpdir";
|
||||
$args1 = [
|
||||
}
|
||||
# build xdsh command
|
||||
if (defined($::USER)){ # non-root user
|
||||
$args1 = [
|
||||
"--nodestatus",
|
||||
"--sudo",
|
||||
"-s",
|
||||
"-v",
|
||||
"-e",
|
||||
"$cmd"
|
||||
];
|
||||
} else { # root
|
||||
$args1 = [
|
||||
"--nodestatus",
|
||||
"-s",
|
||||
"-v",
|
||||
|
Loading…
Reference in New Issue
Block a user