ProxmoxVE 9.0 Beta: add BETA Version as test in pve_check (#6295)
This commit is contained in:
parent
c4ab8f92d5
commit
ba70f9867b
@ -66,13 +66,36 @@ root_check() {
|
|||||||
|
|
||||||
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
|
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
|
||||||
pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[0-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# When a node is running tens of containers, it's possible to exceed the kernel's cryptographic key storage allocations.
|
# When a node is running tens of containers, it's possible to exceed the kernel's cryptographic key storage allocations.
|
||||||
|
@ -138,14 +138,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -138,14 +138,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -139,14 +139,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -142,14 +142,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -139,14 +139,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -138,14 +138,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -184,14 +184,37 @@ function msg_error() {
|
|||||||
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
|
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -180,14 +180,37 @@ function msg_error() {
|
|||||||
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
|
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -139,14 +139,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -147,14 +147,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -134,14 +134,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -137,14 +137,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -136,14 +136,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -136,14 +136,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
@ -138,14 +138,37 @@ function check_root() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function pve_check() {
|
pve_check() {
|
||||||
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then
|
local PVE_VER
|
||||||
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported"
|
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||||
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
|
|
||||||
echo -e "Exiting..."
|
# Check for Proxmox VE 8.x
|
||||||
sleep 2
|
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
|
||||||
exit
|
local MINOR="${BASH_REMATCH[1]}"
|
||||||
|
if ((MINOR < 1 || MINOR > 4)); then
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Required: Proxmox VE version 8.1 – 8.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Proxmox VE 9.x (Beta) — require confirmation
|
||||||
|
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
|
||||||
|
if whiptail --title "Proxmox 9.x Detected (Beta)" \
|
||||||
|
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
|
||||||
|
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# All other unsupported versions
|
||||||
|
msg_error "This version of Proxmox VE is not supported."
|
||||||
|
echo -e "Supported versions: Proxmox VE 8.1 – 8.4 or 9.x (Beta, with confirmation)"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function arch_check() {
|
function arch_check() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user