diff --git a/misc/post-install.sh b/misc/post-install.sh index 73c32268..21654ffd 100644 --- a/misc/post-install.sh +++ b/misc/post-install.sh @@ -22,6 +22,12 @@ while true; do * ) echo "Please answer yes or no.";; esac done + +if ! command -v pveversion >/dev/null 2>&1; then + echo -e "\nšŸ›‘ No PVE Detected, Wrong Script!\n" + exit 1 +fi + if [ `pveversion | grep "pve-manager/7" | wc -l` -ne 1 ]; then echo -e "\n${RD}āš  This version of Proxmox Virtual Environment is not supported" echo -e "Requires PVE Version: 7.XX${CL}"