mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	RH7/Centos7 and recent versions of fedora relocate `/*bin/*` into `/usr/*bin/`. This causes conflicts for upgrades against xCAT-genesis-scripts-* packages which expect the `/bin` a to be a directory while `xCAT-genesis-base-*` packages provide a link. Relocating all files into `/usr` fixes that conflict and allows a clean upgrade from all old versions.
		
			
				
	
	
		
			16 lines
		
	
	
		
			338 B
		
	
	
	
		
			Awk
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			338 B
		
	
	
	
		
			Awk
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/awk -f
 | 
						|
BEGIN {
 | 
						|
        listener = "/inet/tcp/300/0/0"
 | 
						|
        quit = "no"
 | 
						|
 | 
						|
 | 
						|
       while (match(quit,"no")) {
 | 
						|
         while ((listener |& getline) > 0) {
 | 
						|
                 if (match($0,"CREDOKBYYOU?")) {
 | 
						|
                         print "CREDOKBYME" |& listener
 | 
						|
                   }
 | 
						|
         }
 | 
						|
         close(listener)
 | 
						|
      }
 | 
						|
}
 |