From ae51e1baed7457f4aa34fb75d8219457089779d9 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:07:26 +0200 Subject: [PATCH] Update k3s-vm.sh --- vm/k3s-vm.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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