mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-31 04:54:43 +00:00
build.func: fall back to silent mode when no TTY or whiptail unavailable
This commit is contained in:
@@ -3649,6 +3649,16 @@ start() {
|
|||||||
run_addon_updates
|
run_addon_updates
|
||||||
update_motd_ip
|
update_motd_ip
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
elif ! command -v whiptail &>/dev/null || ! [ -t 0 ]; then
|
||||||
|
msg_info "No interactive terminal detected – defaulting to silent update mode"
|
||||||
|
VERBOSE="no"
|
||||||
|
set_std_mode
|
||||||
|
ensure_profile_loaded
|
||||||
|
get_lxc_ip
|
||||||
|
update_script
|
||||||
|
run_addon_updates
|
||||||
|
update_motd_ip
|
||||||
|
cleanup_lxc
|
||||||
else
|
else
|
||||||
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
|
CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "${APP} LXC Update/Setting" --menu \
|
||||||
"Support/Update functions for ${APP} LXC. Choose an option:" \
|
"Support/Update functions for ${APP} LXC. Choose an option:" \
|
||||||
|
|||||||
Reference in New Issue
Block a user