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