command_comms_check.sh 630 B

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