Browse Source

Update post_install.sh

tteckster 3 years ago
parent
commit
40f3ee97e9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      misc/post_install.sh

+ 6 - 0
misc/post_install.sh

@@ -9,6 +9,12 @@ while true; do
         * ) echo "Please answer yes or no.";;
     esac
 done
+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
 clear
 echo -e "\e[1;33m Disable Enterprise Repository...  \e[0m"
 sleep 1