Update k3s-vm.sh

This commit is contained in:
CanbiZ (MickLesk)
2026-04-24 10:07:26 +02:00
parent 89095f3d5d
commit ae51e1baed

View File

@@ -41,6 +41,19 @@ function error_handler() {
cleanup_vmid
}
function ssh_check() {
if command -v pveversion >/dev/null 2>&1; then
if [ -n "${SSH_CLIENT:-}" ]; then
if whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "SSH DETECTED" --yesno "It's suggested to use the Proxmox shell instead of SSH, since SSH can create issues while gathering variables. Would you like to proceed with using SSH?" 10 62; then
:
else
clear
exit
fi
fi
fi
}
get_valid_nextid
cleanup_vmid
cleanup