command_test_alert.sh 471 B

1234567891011121314151617181920
  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. alert="test"
  13. alert.sh
  14. else
  15. fn_print_fail_nl "alerts not enabled"
  16. fn_scriptlog "alerts not enabled"
  17. fi