mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-23 07:44:58 +02:00
Implement local _disable_update for conditional upgrade handling
Add a local variable to manage update disabling based on environment settings.
This commit is contained in:
committed by
GitHub
parent
a96402797e
commit
b18e9298b1
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user