check_config.sh 557 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LGSM check_config.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: If server config missing warn user.
  6. local commandnane="CHECK"
  7. local commandaction="Checking"
  8. local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. if [ ! -e "${servercfgfullpath}" ]; then
  10. if [ "${gamename}" != "Hurtworld" ]; then
  11. fn_print_warn_nl "Configuration file missing!"
  12. echo "${servercfgfullpath}"
  13. fn_script_log_warn "Configuration file missing!"
  14. fn_script_log_warn "${servercfgfullpath}"
  15. sleep 2
  16. fi
  17. fi