Update netdata.sh
This commit is contained in:
parent
d5f620bfe6
commit
c74b2d58da
@ -51,11 +51,11 @@ pve_check() {
|
||||
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
|
||||
|
||||
# Proxmox VE 8.x: allow 8.0 – 8.9
|
||||
if [[ "$PVE_VER" =~ ^8\.([0-9]+)$ ]]; then
|
||||
if [[ "$PVE_VER" =~ ^9\.([0-9]+)(\.[0-9]+)?$ ]]; then
|
||||
local MINOR="${BASH_REMATCH[1]}"
|
||||
if ((MINOR < 0 || MINOR > 9)); then
|
||||
if ((MINOR != 0)); then
|
||||
msg_error "Unsupported Proxmox VE version: $PVE_VER"
|
||||
msg_error "Supported versions: 8.0 – 8.9 or 9.0"
|
||||
msg_error "Supported versions: 8.0 – 8.9 or 9.0.x"
|
||||
exit 1
|
||||
fi
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user