misc cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15521 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d3b43b6f9c
commit
4def0472ed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user