check_config.sh 526 B

123456789101112131415161718
  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_warn_nl "Configuration file missing!"
  11. echo "${servercfgfullpath}"
  12. fn_script_log_warn "Configuration file missing!"
  13. fn_script_log_warn "${servercfgfullpath}"
  14. sleep 2
  15. fi
  16. fi