only display error from usermod
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
092a7333fa
commit
173c16cf48
@ -125,10 +125,10 @@ sub setup_FTP
|
||||
mkpath($installdir);
|
||||
}
|
||||
$cmd = "usermod -d $installdir ftp";
|
||||
system $cmd;
|
||||
if ($? > 0) {
|
||||
my $outref = xCAT::Utils->runcmd($cmd,0);
|
||||
if ($::RUNCMD_RC) {
|
||||
|
||||
xCAT::MsgUtils->message("S", "Error from command:$cmd");
|
||||
xCAT::MsgUtils->message("S", "Error from command:$cmd");
|
||||
}
|
||||
|
||||
# restart tftp
|
||||
|
Loading…
Reference in New Issue
Block a user