mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-23 15:54:56 +02:00
fix(build): skip LXC stack upgrade prompt in unattended mode
Honor PHS_SILENT=1 and DISABLE_UPDATE=yes by auto-ignoring the host upgrade dialog, matching silent container update behavior.
This commit is contained in:
@@ -5722,6 +5722,11 @@ create_lxc_container() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ "${PHS_SILENT:-0}" == "1" || "${DISABLE_UPDATE,,}" == "yes" ]]; then
|
||||
msg_info "Skipping host LXC stack upgrade prompt (unattended mode)"
|
||||
return 2
|
||||
fi
|
||||
|
||||
msg_warn "An update for the Proxmox LXC stack is available"
|
||||
echo " pve-container: installed=${_pvec_i:-n/a} candidate=${_pvec_c:-n/a}"
|
||||
echo " lxc-pve : installed=${_lxcp_i:-n/a} candidate=${_lxcp_c:-n/a}"
|
||||
|
||||
Reference in New Issue
Block a user