Create otherpkgdir if it doesn't exist on management node or service node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -480,6 +480,11 @@ sub assign_to_osimage
 | 
			
		||||
                my $otherpkgdir = $linuximagetable->{otherpkgdir};
 | 
			
		||||
                my $kitrepodir = $kitrepotable->{kitrepodir};
 | 
			
		||||
 | 
			
		||||
                # Create otherpkgdir if it doesn't exist
 | 
			
		||||
                unless ( -d "$otherpkgdir" ) {
 | 
			
		||||
                    mkpath("$otherpkgdir");
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                # Create symlink if doesn't exist
 | 
			
		||||
                unless ( -d "$otherpkgdir/$kitcomptable->{kitreponame}" ) {
 | 
			
		||||
                    system("ln -sf $kitrepodir $otherpkgdir/$kitcomptable->{kitreponame} ");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user