mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor get_rockylinux() to add create_vm() compatibility
This commit is contained in:
		
							parent
							
								
									687da83b00
								
							
						
					
					
						commit
						455b9e723c
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		
							
								
								
									
										12
									
								
								quickget
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								quickget
									
										
									
									
									
								
							|  | @ -1087,15 +1087,15 @@ function get_regolith() { | ||||||
| function get_rockylinux() { | function get_rockylinux() { | ||||||
|     local EDITION="${1:-}" |     local EDITION="${1:-}" | ||||||
|     local HASH="" |     local HASH="" | ||||||
|     local ISO="" |     local ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso" | ||||||
|     local URL="" |     local URL="" | ||||||
| 
 | 
 | ||||||
|     URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64" |     case ${RELEASE} in | ||||||
|     ISO="Rocky-${RELEASE}-x86_64-${EDITION}.iso" |       8.5) URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64";; | ||||||
|  |       *)   URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64/";; | ||||||
|  |     esac | ||||||
|     HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4) |     HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4) | ||||||
|     web_get "${URL}/${ISO}" "${VM_PATH}" |     echo "${URL}/${ISO} ${HASH}" | ||||||
|     check_hash "${ISO}" "${HASH}" |  | ||||||
|     make_vm_config "${ISO}" |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function get_slackware() { | function get_slackware() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue