mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Add Oracle Linux version 7.9, 7.8, 7.7 support
Add Oracle Linux version 7.9, 7.8, 7.7 support Note different ISO naming pattern from 8.x
This commit is contained in:
parent
93cafe7bf7
commit
bccabad4fd
1 changed files with 13 additions and 5 deletions
14
quickget
14
quickget
|
@ -267,7 +267,10 @@ function releases_opensuse(){
|
||||||
function releases_oraclelinux() {
|
function releases_oraclelinux() {
|
||||||
echo 8.4 \
|
echo 8.4 \
|
||||||
8.3 \
|
8.3 \
|
||||||
8.2
|
8.2 \
|
||||||
|
7.9 \
|
||||||
|
7.8 \
|
||||||
|
7.7
|
||||||
}
|
}
|
||||||
|
|
||||||
function releases_macos() {
|
function releases_macos() {
|
||||||
|
@ -1046,15 +1049,20 @@ function get_oraclelinux() {
|
||||||
|
|
||||||
local arch="x86_64"
|
local arch="x86_64"
|
||||||
|
|
||||||
|
validate_release "releases_oraclelinux"
|
||||||
|
|
||||||
local majorver=${RELEASE::1}
|
local majorver=${RELEASE::1}
|
||||||
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"
|
local hashurl="https://linux.oracle.com/security/gpg/checksum/OracleLinux-R${majorver}-U${minorver}-Server-x86_64.checksum"
|
||||||
|
|
||||||
validate_release "releases_oraclelinux"
|
if [ "${majorver}" == "8" ]; then
|
||||||
|
ISO="OracleLinux-R${majorver}-U${minorver}-${arch}-dvd.iso"
|
||||||
|
else
|
||||||
|
ISO="OracleLinux-R${majorver}-U${minorver}-Server-${arch}-dvd.iso"
|
||||||
|
fi
|
||||||
|
|
||||||
ISO="OracleLinux-R${majorver}-U${minorver}-${arch}-dvd.iso"
|
|
||||||
URL="${baseurl}/${ISO}"
|
URL="${baseurl}/${ISO}"
|
||||||
HASH=$(wget -q -O- "${hashurl}" | grep "${ISO}" | cut -d' ' -f1)
|
HASH=$(wget -q -O- "${hashurl}" | grep "${ISO}" | cut -d' ' -f1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue