command_test_alert.sh 591 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # LGSM command_email_test.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. lgsm_version="140516"
  6. # Description: Sends a test email alert.
  7. local modulename="Alert"
  8. function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  9. check.sh
  10. info_config.sh
  11. if [ "${emailalert}" = "on" ]||[ "${pushbulletalert}" = "on" ]; then
  12. fn_scriptlog "Sending alert Check"
  13. alertsubject="LGSM - Alert Check - ${servername}"
  14. alertbody="LGSM testing alert, how you read?"
  15. alert.sh
  16. else
  17. fn_print_fail_nl "alerts not enabled"
  18. fn_scriptlog "alerts not enabled"
  19. fi