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:
lissav 2008-10-23 15:59:32 +00:00
parent 092a7333fa
commit 173c16cf48

View File

@ -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