Skip to content

Commit

Permalink
feat: Add proxmox-ve (#1518)
Browse files Browse the repository at this point in the history
* Add proxmox-ve

* Dynamically detect proxmox-ve releases

* fix: Address shellcheck lint

---------

Co-authored-by: Jack antibes admin <[email protected]>
Co-authored-by: Liam <[email protected]>
  • Loading branch information
3 people authored Dec 30, 2024
1 parent 2c22f0c commit 6334e82
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function os_info() {
popos) INFO="Pop!_OS|-|https://pop.system76.com/|Operating system for STEM and creative professionals who use their computer as a tool to discover and create.";;
porteus) INFO="Porteus|-|http://www.porteus.org/|Complete linux operating system that is optimized to run from CD, USB flash drive, hard drive, or other bootable storage media.";;
primtux) INFO="PrimTux|-|https://primtux.fr/|A complete and customizable GNU/Linux operating system intended for primary school students and suitable even for older hardware.";;
proxmox-ve) INFO="Proxmox VE|-|https://proxmox.com/en/proxmox-virtual-environment/|Proxmox Virtual Environment is a complete, open-source server management platform for enterprise virtualization.";;
pureos) INFO="PureOS|-|https://www.pureos.net/|A fully free/libre and open source GNU/Linux operating system, endorsed by the Free Software Foundation.";;
reactos) INFO="ReactOS|-|https://reactos.org/|Imagine running your favorite Windows applications and drivers in an open-source environment you can trust.";;
rebornos) INFO="RebornOS|-|https://rebornos.org/|Aiming to make Arch Linux as user friendly as possible by providing interface solutions to things you normally have to do in a terminal.";;
Expand Down Expand Up @@ -463,6 +464,7 @@ function os_support() {
popos \
porteus \
primtux \
proxmox-ve \
pureos \
reactos \
rebornos \
Expand Down Expand Up @@ -940,6 +942,11 @@ function editions_primtux() {
echo 2022-10
}

function releases_proxmox-ve() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe https://enterprise.proxmox.com/iso/ | grep proxmox-ve | grep -E -o '[0-9]+\.[0-9]+-[0-9]\.iso' | uniq | sort -ru | cut -d'.' -f 1-2)
}

function releases_pureos() {
web_pipe "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '"' -f 2 | cut -d '-' -f 4
}
Expand Down Expand Up @@ -1470,6 +1477,10 @@ EOF
echo "cpu_cores=2" >> "${CONF_FILE}"
fi
;;
proxmox-ve)
echo "disk_size=\"20G\"" >> "${CONF_FILE}"
echo "ram=\"4G\"" >> "${CONF_FILE}"
;;
esac

if [ "${OS}" == "ubuntu" ] && [[ ${RELEASE} == *"daily"* ]]; then
Expand Down Expand Up @@ -2336,6 +2347,17 @@ function get_primtux() {
echo "${URL}/${ISO} ${HASH}"
}

function get_proxmox-ve() {
local HASH=""
local ISO=""
local URL=""
ISO="proxmox-ve_${RELEASE}.iso"
URL="https://enterprise.proxmox.com/iso"
HASH=$(web_pipe "${URL}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"

}

function get_pureos() {
local HASH=""
local ISO=""
Expand Down

0 comments on commit 6334e82

Please sign in to comment.