From b18e9298b1bcd4b28cd798b696d97f1611a0f964 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 23 Jun 2026 06:31:44 +0200 Subject: [PATCH] Implement local _disable_update for conditional upgrade handling Add a local variable to manage update disabling based on environment settings. --- misc/build.func | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index a04d76fb1..250d2a2a9 100644 --- a/misc/build.func +++ b/misc/build.func @@ -5721,7 +5721,8 @@ create_lxc_container() { msg_debug "No newer candidate for pve-container/lxc-pve (installed=$_pvec_i/$_lxcp_i, cand=$_pvec_c/$_lxcp_c)" return 0 fi - + local _disable_update="${DISABLE_UPDATE:-no}" + if [[ "${PHS_SILENT:-0}" == "1" || "${_disable_update,,}" == "yes" ]]; then if [[ "${PHS_SILENT:-0}" == "1" || "${DISABLE_UPDATE,,}" == "yes" ]]; then msg_info "Skipping host LXC stack upgrade prompt (unattended mode)" return 2