Compare commits

..

2 Commits

Author SHA1 Message Date
Adam Maracz 5569d70398
updated cleanup with current omada version (#1365) 2023-04-26 05:40:14 -04:00
tteckster 513049c50b
Update pimox-haos-vm.sh
update pve_check
2023-04-26 05:38:40 -04:00
2 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@ motd_ssh
root root
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf Omada_SDN_Controller_v5.9.9_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb rm -f Omada_SDN_Controller_v5.9.31_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb
$STD apt-get autoremove $STD apt-get autoremove
$STD apt-get autoclean $STD apt-get autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -79,10 +79,10 @@ else
exit exit
fi fi
function PVE_CHECK() { function PVE_CHECK() {
if [ $(pveversion | grep "pve-manager/7.2\|7.3" | wc -l) -ne 1 ]; then if [ $(pveversion | grep -c "pve-manager/7\.[2-9]") -eq 0 ]; then
echo "⚠ This version of Proxmox Virtual Environment is not supported" echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
echo "Requires PVE Version: =>7.2" echo -e "Requires PVE Version 7.2 or higher"
echo "Exiting..." echo -e "Exiting..."
sleep 2 sleep 2
exit exit
fi fi