4
0

install_complete.sh 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # LinuxGSM install_complete.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Prints installation completion message and hints.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. echo -e ""
  9. if [ "${exitcode}" -eq 1 ]; then
  10. echo -e "${bold}${red}Install Failed!${default}"
  11. fn_script_log_fail "Install Failed!"
  12. elif [ "${exitcode}" -eq 2 ]; then
  13. echo -e "${bold}${red}Install Completed with Errors!${default}}"
  14. fn_script_log_error "Install Completed with Errors!"
  15. elif [ "${exitcode}" -eq 3 ]; then
  16. echo -e "${bold}${lightyellow}Install Completed with Warnings!${default}}"
  17. fn_script_log_warn "Install Completed with Warnings!"
  18. elif [ -z "${exitcode}" ] || [ "${exitcode}" -eq 0 ]; then
  19. echo -e "${bold}${green}Install Complete!${default}"
  20. fn_script_log_pass "Install Complete!"
  21. fi
  22. fn_messages_separator
  23. echo -e ""
  24. echo -e "To start the ${gamename} server type:"
  25. echo -e "${italic}./${selfname} start${default}"
  26. echo -e ""
  27. core_exit.sh