mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Attempt get HASH for OracleLinux and check it
This commit is contained in:
parent
e5e40ba77c
commit
f7ead7e815
1 changed files with 4 additions and 3 deletions
7
quickget
7
quickget
|
@ -1050,15 +1050,16 @@ function get_oraclelinux() {
|
||||||
local minorver=${RELEASE:2:1}
|
local minorver=${RELEASE:2:1}
|
||||||
|
|
||||||
local baseurl="https://yum.oracle.com/ISOS/OracleLinux/OL${majorver}/u${minorver}/${arch}/"
|
local baseurl="https://yum.oracle.com/ISOS/OracleLinux/OL${majorver}/u${minorver}/${arch}/"
|
||||||
|
local hashurl="https://linux.oracle.com/security/gpg/checksum/OracleLinux-R${majorver}-U${minorver}-Server-x86_64.checksum"
|
||||||
|
|
||||||
validate_release "releases_oraclelinux"
|
validate_release "releases_oraclelinux"
|
||||||
|
|
||||||
ISO="OracleLinux-R${majorver}-U${minorver}-${arch}-dvd.iso"
|
ISO="OracleLinux-R${majorver}-U${minorver}-${arch}-dvd.iso"
|
||||||
URL="${baseurl}/${ISO}"
|
URL="${baseurl}/${ISO}"
|
||||||
# HASH=$(wget -q -O- "${baseurl}/CHECKSUM" | grep "SHA256 (${ISO})" | grep -E -i -w -o '[0-9a-z]{64}')
|
HASH=$(wget -q -O- "${hashurl}" | cut -d' ' -f1)
|
||||||
|
|
||||||
web_get "${URL}" "${VM_PATH}"
|
web_get "${URL}" "${VM_PATH}"
|
||||||
# check_hash "${ISO}" "${HASH}"
|
check_hash "${ISO}" "${HASH}"
|
||||||
make_vm_config "${ISO}"
|
make_vm_config "${ISO}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue