diff --git a/v2/debian.sh b/v2/debian.sh index 4e0bf30..57f61b5 100755 --- a/v2/debian.sh +++ b/v2/debian.sh @@ -353,3 +353,28 @@ color_green echo echo "Debian setup complete." color_reset + +########################## +# 7. Installation Finished +########################## +color_red + echo + echo "The installation has finished. A reboot is recommended before continuing." + color_reset + read -rp "Reboot now? [y/N]: " reboot_choice + case "${reboot_choice,,}" in + y|yes) + color_red + echo + echo "Rebooting now." + color_reset + sudo reboot + ;; + *) + color_yellow + echo + echo "Skipping reboot. Make sure to reboot manually before continuing upgrades." + color_reset + exit 0 + ;; + esac \ No newline at end of file