mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor Alma Linux support to add editions
This commit is contained in:
		
							parent
							
								
									04e65d953a
								
							
						
					
					
						commit
						a78ab882d3
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		
							
								
								
									
										15
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								quickget
									
										
									
									
									
								
							|  | @ -199,11 +199,15 @@ function os_support() { | |||
| } | ||||
| 
 | ||||
| function releases_alma() { | ||||
|     # consider flavours for boot and dvd as well as | ||||
|     echo 8.4 \ | ||||
|     8.5 | ||||
| } | ||||
| 
 | ||||
| function editions_alma() { | ||||
|     echo minimal \ | ||||
|     dvd | ||||
| } | ||||
| 
 | ||||
| function releases_alpine() { | ||||
|     echo latest \ | ||||
|     3.12 \ | ||||
|  | @ -748,14 +752,17 @@ function get_android() { | |||
| } | ||||
| 
 | ||||
| function get_alma() { | ||||
|     local EDITION="" | ||||
|     local HASH="" | ||||
|     local ISO="" | ||||
|     local ISOTYPE="minimal" | ||||
|     local URL="" | ||||
| 
 | ||||
|     validate_release "releases_alma" | ||||
|     if [ -n "${1}" ]; then | ||||
|       EDITION="${1}" | ||||
|     fi | ||||
| 
 | ||||
|     URL="http://lon.mirror.rackspace.com/almalinux/${RELEASE}/isos/x86_64/" | ||||
|     ISO="AlmaLinux-${RELEASE}-x86_64-${ISOTYPE}.iso" | ||||
|     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}" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue