Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk
bbf9bbf3c6 fix(netdata): extend PVE version support to 9.x 2026-05-25 21:05:47 +02:00
2 changed files with 3 additions and 19 deletions

View File

@@ -41,16 +41,6 @@ $STD apt install -y \
nginx
msg_ok "Installed Dependencies"
msg_info "Installing Nginx mod_zip module"
setup_deb822_repo \
"getpagespeed-extras" \
"https://extras.getpagespeed.com/deb-archive-keyring.gpg" \
"https://extras.getpagespeed.com/debian" \
"$(get_os_info codename)" \
"main"
$STD apt-get install -y nginx nginx-module-zip
msg_ok "Installed Nginx mod_zip module"
PYTHON_VERSION="3.13" setup_uv
NODE_VERSION="24" setup_nodejs
setup_mariadb

View File

@@ -47,7 +47,7 @@ function msg_ok() {
function msg_error() { echo -e "${RD}$1${CL}"; }
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
# Supported: Proxmox VE 8.0.x 8.9.x and 9.09.1.x
# Supported: Proxmox VE 8.0.x 8.9.x and 9.09.x
pve_check() {
local PVE_VER
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
@@ -63,20 +63,14 @@ pve_check() {
return 0
fi
# Check for Proxmox VE 9.x: allow 9.09.1.x
# Check for Proxmox VE 9.x: allow 9.09.x
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 0 || MINOR > 1)); then
msg_error "This version of Proxmox VE is not yet supported."
msg_error "Supported: Proxmox VE version 9.09.1.x"
exit 105
fi
return 0
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
msg_error "Supported versions: Proxmox VE 8.0 8.9 or 9.09.1.x"
msg_error "Supported versions: Proxmox VE 8.0 8.9 or 9.09.x"
exit 105
}