mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	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:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user