diff --git a/vm/k3s-vm.sh b/vm/k3s-vm.sh index 63b4e79e..85eea22a 100644 --- a/vm/k3s-vm.sh +++ b/vm/k3s-vm.sh @@ -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