surpress the error from /bin/mv /install/postscripts/.ssh /install/postscripts/_ssh

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-10-31 16:21:01 +00:00
parent 98f191f7b1
commit 3f937203f7

View File

@ -276,21 +276,21 @@ else
if (-d "/install/postscripts/.ssh")
{
my $cmd = "/bin/mv /install/postscripts/.ssh /install/postscripts/_ssh";
my $outref = xCAT::Utils->runcmd("$cmd", 0);
if ($::RUNCMD_RC != 0)
{
xCAT::MsgUtils->message(
'E',
"Could not move /install/postscripts/.ssh directory to /install/postscripts/_ssh.\n"
);
}
else
{
xCAT::MsgUtils->message(
'I',
"Moved /install/postscripts/.ssh directory to /install/postscripts/_ssh.\n"
);
}
my $outref = xCAT::Utils->runcmd("$cmd", -1);
# if ($::RUNCMD_RC != 0)
# {
# xCAT::MsgUtils->message(
# 'E',
# "Could not move /install/postscripts/.ssh directory to /install/postscripts/_ssh.\n"
# );
# }
# else
# {
# xCAT::MsgUtils->message(
# 'I',
# "Moved /install/postscripts/.ssh directory to /install/postscripts/_ssh.\n"
# );
# }
}
if (-d "/install/postscripts/.xcat")
{