From 1049ac6eac2632ce4ce41786045c62b79774a5d2 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Fri, 15 Aug 2025 12:15:42 +0200 Subject: [PATCH] Update upgrade_pve8_to_pve9.sh --- scripts/utilities/upgrade_pve8_to_pve9.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/utilities/upgrade_pve8_to_pve9.sh b/scripts/utilities/upgrade_pve8_to_pve9.sh index 9c5019d..c4ee200 100644 --- a/scripts/utilities/upgrade_pve8_to_pve9.sh +++ b/scripts/utilities/upgrade_pve8_to_pve9.sh @@ -860,18 +860,23 @@ echo echo echo -msg_success "$(translate "Press Enter to continue...")" +msg_success "Press Enter to continue..." 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 - msg_warn "$(translate "Rebooting the system...")" + msg_warn "Rebooting the system..." echo -e reboot else - msg_info2 "$(translate "You can reboot later manually.")" + msg_info2 "You can reboot later manually." echo -e - msg_success "$(translate "Press Enter to exit")" + msg_success "Press Enter to exit" read -r fi -exit 0 +exit 0 \ No newline at end of file