From e7e5941d1805459c51949fd69d87f75d6e5cb988 Mon Sep 17 00:00:00 2001 From: Den Ivanov Date: Mon, 21 Jun 2021 09:14:56 +0200 Subject: [PATCH] Adding AlmaLinux and RockyLinux --- distrofunctions.sh | 17 +++++++++++++++++ download.sh | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/distrofunctions.sh b/distrofunctions.sh index 3f30c75..e27792b 100755 --- a/distrofunctions.sh +++ b/distrofunctions.sh @@ -382,6 +382,23 @@ notlive checkfile $1 } +almaurl () { +mirror="https://mirrors.almalinux.org" +one=$(curl -s $mirror/isos.html | html2text | grep -m1 x86_64 | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }') +two=$(curl -s $mirror$one | html2text | grep -A2 Norway | grep -m1 isos | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }') +three=$(curl -s $two/ | grep -m1 dvd | awk -F'>' '{ print $2 }' | awk -F'<' '{ print $1 }') +new="$two/$three" +output="alma.iso" +checkfile $1 +} + +rockyurl () { +mirror="https://rockylinux.org/download" +new=$(curl -s $mirror | html2text | grep -m1 DVD | awk -F'(' '{ print $2 }' | awk -F')' '{ print $1 }') +output="rocky.iso" +checkfile $1 +} + alpineurl () { mirrorone="https://alpinelinux.org/downloads/" one=$(curl -s $mirrorone | grep Current | awk -F">" '{ print $3 }' | awk -F"<" '{ print $1 }') diff --git a/download.sh b/download.sh index aeaec21..4cca73b 100755 --- a/download.sh +++ b/download.sh @@ -36,7 +36,7 @@ cmd="qemu-system-x86_64" # The name of the qemu file to search & launch # Categories arch=(archlinux manjaro arcolinux archbang parabola endeavour artix arco garuda rebornos archlabs namib obarun archcraft cutefishos peux) deb=(debian ubuntu linuxmint altlinux zorinos solus popos deepin mxlinux knoppix kali puppy pureos elementary backbox devuan jingos) -rpm=(fedora centos opensuse rosa mandriva mageia clearos) +rpm=(fedora centos opensuse rosa mandriva mageia clearos alma rocky) other=(alpine tinycore porteus slitaz pclinuxos void fourmlinux kaos clearlinux dragora slackware adelie plop) sourcebased=(gentoo sabayon calculate nixos guix) containers=(rancheros k3os flatcar silverblue photon coreos) @@ -91,6 +91,8 @@ rosa=("ROSA" "amd64" "desktop-fresh" "rosaurl") mandriva=("Mandriva" "amd64" "release" "mandrivaurl") mageia=("Mageia" "amd64" "release" "mageiaurl") clearos=("ClearOS" "amd64" "release" "clearosurl") +alma=("AlmaLinux" "amd64" "release" "almaurl") +rocky=("RockyLinux" "amd64" "rc" "rockyurl") alpine=("Alpine" "amd64" "extended" "alpineurl") tinycore=("TinyCore" "amd64" "current" "tinycoreurl")