mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
23 lines
836 B
Text
23 lines
836 B
Text
# Template file for 'alpine'
|
|
OSNAME="alpine"
|
|
PRETTY="Alpine Linux"
|
|
BASEDOF="-"
|
|
DESCRIPTION="Security-oriented, lightweight Linux distribution based on musl libc and busybox"
|
|
HOMEPAGE="https://alpinelinux.org/"
|
|
CREDENTIALS="-"
|
|
|
|
|
|
RELEASES="v3.21 v3.20 v3.19 v3.18 v3.17 v3.16 v3.15 v3.14 v3.13"
|
|
|
|
|
|
function get_() {
|
|
local HASH=""
|
|
local ISO=""
|
|
local URL="https://dl-cdn.alpinelinux.org/alpine/${RELEASE}/releases/x86_64"
|
|
local VERSION=""
|
|
VERSION=$(web_pipe "${URL}/latest-releases.yaml" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'version:' | awk '{print $2}')
|
|
ISO="alpine-virt-${VERSION}-x86_64.iso"
|
|
HASH=$(web_pipe "${URL}/latest-releases.yaml" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'sha256:' | awk '{print $2}')
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|