add ensure_whiptail function

This is required as some arm64 systems will not have whiptail installed, as it is not installed by default.
This commit is contained in:
Sam Heinz
2026-05-12 15:28:43 +10:00
parent 0aeaa5ae97
commit 079afa4600
2 changed files with 20 additions and 2 deletions
+1 -2
View File
@@ -2939,6 +2939,7 @@ install_script() {
pve_check
shell_check
root_check
ensure_whiptail
arch_check
ssh_check
maxkeys_check
@@ -5074,8 +5075,6 @@ create_lxc_container() {
msg_ok "Downloaded ARM64 LXC template"
}
# Architecture-aware template download wrapper.
# Optional $1 overrides destination path (for local-storage fallback).
download_template() {
local dest="${1:-$TEMPLATE_PATH}"
if [[ "$ARCH" == "arm64" ]]; then