4
0

check.sh 676 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # LGSM fn_check function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="201215"
  6. # Description: Overall function for managing checks.
  7. # Runs checks that will either halt on or fix an issue.
  8. fn_module_compare() {
  9. local e
  10. for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done
  11. return 1
  12. }
  13. check_root.sh
  14. if [ "${module}" != "install" ]; then
  15. check_executable.sh
  16. fi
  17. no_check_logs=( details install map-compressor)
  18. fn_module_compare "${module}" "${no_check_logs[@]}"
  19. if [ $? != 0 ]; then
  20. fn_check_logs
  21. fi
  22. fn_check_ip
  23. fn_check_steamcmd
  24. fn_check_steamuser
  25. fn_check_tmux
  26. fn_check_ts3status # may need to move out of checks