diff --git a/menhera.sh b/menhera.sh index 86de721..a512a28 100755 --- a/menhera.sh +++ b/menhera.sh @@ -167,8 +167,14 @@ copy_config install_software swap_root -echo -e "If you are connecting from SSH, please create a second session to this host and confirm you can get a shell." +echo -e "If you are connecting from SSH, please create a second session to this host use root and" +echo -e "confirm you can get a shell." echo -e "After your confirmation, we are going to kill the old SSH server." -confirm || exit -1 -clear_processes +if confirm; then + clear_processes +else + echo -e "Please manually issue a reboot to recover your old OS. If you believe there is a bug in menhera.sh, " + echo -e "raise a ticket at https://github.com/Jamesits/menhera.sh/issues ." + exit 1 +fi