mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-24 16:05:41 +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.
		
			
				
	
	
		
			43 lines
		
	
	
		
			684 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			684 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| #set -x
 | |
| 
 | |
| #################################################################################
 | |
| #   Load functions and variables
 | |
| #
 | |
| . /etc/init.d/functions
 | |
| #
 | |
| ################################################################################
 | |
| 
 | |
| #################################################################################
 | |
| #
 | |
| #   main
 | |
| #
 | |
| {
 | |
| 
 | |
| ping_test
 | |
| 
 | |
| get_scripts_directory
 | |
| 
 | |
| if [ ! -z $HOSTNAME ]; then
 | |
|     logmsg
 | |
|     logmsg "This hosts name is: $HOSTNAME"
 | |
| fi
 | |
| 
 | |
| run_pre_install_scripts
 | |
| 
 | |
| choose_autoinstall_script
 | |
| 
 | |
| write_variables
 | |
| beep
 | |
| 
 | |
| run_autoinstall_script
 | |
| 
 | |
| } 2>&1 | send_monitor_stdout
 | |
| 
 | |
| #
 | |
| #################################################################################
 | |
| 
 | |
| exit 0
 | |
| 
 |