mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_alma() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									30ebabab04
								
							
						
					
					
						commit
						7dc6572bdf
					
				
					 1 changed files with 4 additions and 9 deletions
				
			
		
							
								
								
									
										13
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								quickget
									
										
									
									
									
								
							|  | @ -674,15 +674,10 @@ EOF | |||
| function get_alma() { | ||||
|     local EDITION="${1:-}" | ||||
|     local HASH="" | ||||
|     local ISO="" | ||||
|     local URL="" | ||||
| 
 | ||||
|     URL="http://lon.mirror.rackspace.com/almalinux/${RELEASE}/isos/x86_64/" | ||||
|     ISO="AlmaLinux-${RELEASE}-x86_64-${EDITION}.iso" | ||||
|     HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep \("${ISO}" | cut -d'\' -f4)" | ||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" | ||||
|     check_hash "${ISO}" "${HASH}" | ||||
|     make_vm_config "${ISO}" | ||||
|     local ISO="AlmaLinux-${RELEASE}-x86_64-${EDITION}.iso" | ||||
|     local URL="http://lon.mirror.rackspace.com/almalinux/${RELEASE}/isos/x86_64/" | ||||
|     HASH="$(wget -q -O- "${URL}/CHECKSUM" | grep "(${ISO}" | cut -d' ' -f4)" | ||||
|     echo "${URL}/${ISO} ${HASH}" | ||||
| } | ||||
| 
 | ||||
| function get_alpine() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue