|
|
|
@ -65,13 +65,13 @@ function msg_error() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function PVE_CHECK() { |
|
|
|
function PVE_CHECK() { |
|
|
|
if [ $(pveversion | grep -c "pve-manager/7\.[0-9]") -eq 0 ]; then |
|
|
|
if ! pveversion | grep -Eq "pve-manager/(7\.[2-9]|8\.[0-9])"; then |
|
|
|
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" |
|
|
|
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" |
|
|
|
echo -e "Requires PVE Version 7.0 or higher" |
|
|
|
echo -e "Requires PVE Version 7.2 or higher" |
|
|
|
echo -e "Exiting..." |
|
|
|
echo -e "Exiting..." |
|
|
|
sleep 2 |
|
|
|
sleep 2 |
|
|
|
exit |
|
|
|
exit |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
function ARCH_CHECK() { |
|
|
|
function ARCH_CHECK() { |
|
|
|
if [ "$(dpkg --print-architecture)" != "amd64" ]; then |
|
|
|
if [ "$(dpkg --print-architecture)" != "amd64" ]; then |
|
|
|
|