install_complete.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. # LinuxGSM install_complete.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://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. fn_messages_separator
  10. if [ "${exitcode}" == "1" ]; then
  11. echo -e "${bold}${red}Install Failed!${default}"
  12. fn_script_log_fail "Install Failed!"
  13. elif [ "${exitcode}" == "2" ]; then
  14. echo -e "${bold}${red}Install Completed with Errors!${default}}"
  15. fn_script_log_error "Install Completed with Errors!"
  16. elif [ "${exitcode}" == "3" ]; then
  17. echo -e "${bold}${lightyellow}Install Completed with Warnings!${default}}"
  18. fn_script_log_warn "Install Completed with Warnings!"
  19. elif [ -z "${exitcode}" ] || [ "${exitcode}" == "0" ]; then
  20. echo -e "${bold}${green}Install Complete!${default}"
  21. fn_script_log_pass "Install Complete!"
  22. fi
  23. fn_script_log_info "Install Complete!"
  24. echo -e ""
  25. echo -e "To start server type:"
  26. echo -e "./${selfname} start"
  27. echo -e ""
  28. core_exit.sh