added finished section to debian
This commit is contained in:
25
v2/debian.sh
25
v2/debian.sh
@@ -353,3 +353,28 @@ color_green
|
|||||||
echo
|
echo
|
||||||
echo "Debian setup complete."
|
echo "Debian setup complete."
|
||||||
color_reset
|
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
|
||||||
Reference in New Issue
Block a user