From 9d7170d7a25928a6d4592ead5757d9cf8d8de24d Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 9 Jun 2023 18:12:13 -0400 Subject: [PATCH] Update pve8-post-install.sh --- misc/pve8-post-install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/misc/pve8-post-install.sh b/misc/pve8-post-install.sh index 2437d19b..d505d980 100644 --- a/misc/pve8-post-install.sh +++ b/misc/pve8-post-install.sh @@ -192,4 +192,19 @@ while true; do esac done +if ! command -v pveversion >/dev/null 2>&1; then + header_info + msg_error "\n No PVE Detected!\n" + exit +fi + +if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then + header_info + msg_error "This version of Proxmox Virtual Environment is not supported" + echo -e " Requires PVE Version: 8.XX" + echo -e "\nExiting..." + sleep 3 + exit +fi + start_routines