소스 검색

Update pve8-upgrade.sh

add check for PVE Version 7.4-13 or higher
tteckster 2 년 전
부모
커밋
3624b67302
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      misc/pve8-upgrade.sh

+ 9 - 0
misc/pve8-upgrade.sh

@@ -179,4 +179,13 @@ if ! command -v pveversion >/dev/null 2>&1; then
   exit
 fi
 
+if ! pveversion | grep -Eq "pve-manager/(7\.4-(13|14|15|16))"; then
+  header_info
+  msg_error "This version of Proxmox Virtual Environment is not supported"
+  echo -e "  PVE Version 7.4-13 or higher is required."
+  echo -e "\nExiting..."
+  sleep 3
+  exit
+fi
+
 start_routines