Explorar o código

Update post_install.sh

tteckster %!s(int64=3) %!d(string=hai) anos
pai
achega
40f3ee97e9
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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