mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-25 19:35:04 +02:00
chore(lxc-stack-prompt): clarify host dist-upgrade action in option 1
This commit is contained in:
@@ -5449,20 +5449,21 @@ create_lxc_container() {
|
||||
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}"
|
||||
echo " note : option 1 runs host apt update + apt dist-upgrade"
|
||||
echo
|
||||
|
||||
# Offer older OS version fallback when template version might be too new for LXC stack
|
||||
local _has_fallback_option=false
|
||||
if [[ "$do_retry" == "yes" ]] && has_previous_os_version_template; then
|
||||
_has_fallback_option=true
|
||||
echo " [1] Upgrade LXC stack now (recommended)"
|
||||
echo " [1] Run host dist-upgrade now (recommended)"
|
||||
echo " [2] Use an older ${PCT_OSTYPE} template instead (may not work with all scripts)"
|
||||
echo " [3] Ignore"
|
||||
echo " [4] Cancel"
|
||||
echo
|
||||
read -rp "Select option [1/2/3/4]: " _ans </dev/tty
|
||||
else
|
||||
echo " [1] Upgrade LXC stack now (recommended)"
|
||||
echo " [1] Run host dist-upgrade now (recommended)"
|
||||
echo " [2] Ignore"
|
||||
echo " [3] Cancel"
|
||||
echo
|
||||
@@ -5507,7 +5508,7 @@ create_lxc_container() {
|
||||
|
||||
case "${_ans,,}" in
|
||||
y | yes)
|
||||
msg_info "Upgrading Proxmox LXC stack"
|
||||
msg_info "Running host dist-upgrade for LXC stack compatibility"
|
||||
apt_update_safe
|
||||
if $STD apt-get dist-upgrade -y; then
|
||||
msg_ok "LXC stack upgraded."
|
||||
|
||||
Reference in New Issue
Block a user