check_logs.sh 582 B

123456789101112131415161718
  1. #!/bin/bash
  2. # LGSM check_logs.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Checks that log files exist on server start
  6. local commandnane="CHECK"
  7. local commandaction="Checking"
  8. local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. # Create dir's for the script and console logs
  10. if [ ! -d "${scriptlogdir}" ]||[ ! -d "${consolelogdir}" ]&&[ "${gamename}" != "Teamspeak 3" ]; then
  11. fn_print_dots "Checking for log files"
  12. sleep 1
  13. fn_print_info_nl "Checking for log files: Creating log files"
  14. checklogs=1
  15. install_logs.sh
  16. fi