Update upgrade_pve8_to_pve9.sh

This commit is contained in:
MacRimi 2025-08-15 12:15:42 +02:00
parent 04dc7af25c
commit 1049ac6eac

View File

@ -860,18 +860,23 @@ echo
echo echo
echo echo
msg_success "$(translate "Press Enter to continue...")" msg_success "Press Enter to continue..."
read -r read -r
if confirm "It is RECOMMENDED to reboot now to load the new kernel and services.\n\nReboot now?"; then
whiptail --title "Reboot Required" \
--yesno "It is RECOMMENDED to reboot now to load the new kernel and services.\n\nReboot now?" \
12 70
if [ $? -eq 0 ]; then
echo -e echo -e
msg_warn "$(translate "Rebooting the system...")" msg_warn "Rebooting the system..."
echo -e echo -e
reboot reboot
else else
msg_info2 "$(translate "You can reboot later manually.")" msg_info2 "You can reboot later manually."
echo -e echo -e
msg_success "$(translate "Press Enter to exit")" msg_success "Press Enter to exit"
read -r read -r
fi fi
exit 0 exit 0