check_config.sh 557 B

1234567891011121314151617181920
  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 selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  8. if [ ! -e "${servercfgfullpath}" ]; then
  9. if [ "${gamename}" != "Hurtworld" ]; then
  10. fn_print_dots ""
  11. sleep 0.5
  12. fn_print_warn_nl "Configuration file missing!"
  13. echo "${servercfgfullpath}"
  14. fn_script_log_warn "Configuration file missing!"
  15. fn_script_log_warn "${servercfgfullpath}"
  16. sleep 2
  17. fi
  18. fi