mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	defect 3941
This commit is contained in:
		@@ -284,8 +284,22 @@ sub setdestiny {
 | 
			
		||||
		}
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
  
 | 
			
		||||
	
 | 
			
		||||
        #if the postscripts directory exists then make sure it is
 | 
			
		||||
        # world readable and executable by root; otherwise wget fails
 | 
			
		||||
        my $installdir = xCAT::TableUtils->getInstallDir();
 | 
			
		||||
        my $postscripts = "$installdir/postscripts";
 | 
			
		||||
        if (-e $postscripts)
 | 
			
		||||
        {
 | 
			
		||||
           my $cmd = "chmod -R a+r $postscripts";
 | 
			
		||||
           xCAT::Utils->runcmd($cmd, 0);
 | 
			
		||||
           my $rsp = {};
 | 
			
		||||
           if ($::RUNCMD_RC != 0)
 | 
			
		||||
           {
 | 
			
		||||
              $callback->({info=>"$cmd failed"});
 | 
			
		||||
 | 
			
		||||
           }
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
	#print Dumper($req);
 | 
			
		||||
	# if precreatemypostscripts=1, create each mypostscript for each node
 | 
			
		||||
	# otherwise, create it during installation /updatenode
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user