misc cleanup

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2013-03-14 16:02:31 +00:00
parent 221a44d1bd
commit 3c81f67a62

View File

@ -156,14 +156,20 @@ if (-f $listfile)
}
# clean up tmp files
my $rmcmd = qq~/bin/rmdir -R $emgrfile $instpfile~;
my $rmcmd = qq~/bin/rm -R $emgrfile $instpfile~;
print "Running: \'$rmcmd\'\n";
$rc = &runcmd($rmcmd);
if ($rc != 0)
{
# "Could not remove $emgrfile and $instpfile.\n";
}
# unmount source dir
my $umtcmd = qq~/usr/sbin/umount /xcatswmnt~;
print "Running: \'$umtcmd\'\n";
$rc = &runcmd($umtcmd);
if ($rc != 0)
{
# "Could not unmount source directory.\n";
}
}
@ -321,6 +327,8 @@ sub do_rpms
$rpmcmd = qq~/usr/bin/rpm $rflags ~;
}
print "Running: \'$rpmcmd\'\n";
my $rc = &runcmd($rpmcmd);
print "$::outref\n";
if ($rc != 0)
@ -398,6 +406,8 @@ sub do_emgr
$emgrcmd .= qq~ -f $emgrfile ~;
}
print "Running: \'$emgrcmd\'\n";
my $rc = &runcmd($emgrcmd);
print "$::outref\n";
if ($rc != 0)
@ -482,6 +492,8 @@ sub do_installp
}
}
print "Running: \'$inpcmd\'\n";
my $rc = &runcmd($inpcmd);
print "$::outref\n";
if ($rc != 0)