From 3c81f67a628edf3f8d4b5da5201f3ae7e4cb6394 Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 14 Mar 2013 16:02:31 +0000 Subject: [PATCH] misc cleanup git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/aixswupdate | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/aixswupdate b/xCAT/postscripts/aixswupdate index 3ae249927..3db8dd2de 100755 --- a/xCAT/postscripts/aixswupdate +++ b/xCAT/postscripts/aixswupdate @@ -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)