Przeglądaj źródła

Update debian-v3.sh

tteckster 3 lat temu
rodzic
commit
0330ae6a3e
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      ct/debian-v3.sh

+ 9 - 0
ct/debian-v3.sh

@@ -30,6 +30,15 @@ ${CL}"
 }
 
 header_info
+function pve_7() {
+if [ `pveversion | grep "pve-manager/7" | wc -l` -ne 1 ]; then
+        echo -e "${RD}This script requires Proxmox Virtual Environment 7.0 or greater"
+        echo -e "Exiting..."
+        sleep 2
+        exit
+fi
+}
+
 function default_settings() {
         clear
         header_info