Browse Source

misc improvements

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
a443b2636a
  1. 3
      lgsm/functions/command_comms_check.sh
  2. 13
      lgsm/functions/comms_pushbullet.sh

3
lgsm/functions/command_comms_check.sh

@ -2,12 +2,13 @@
# LGSM command_email_test.sh function # LGSM command_email_test.sh function
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Website: https://gameservermanagers.com # Website: https://gameservermanagers.com
lgsm_version="271215" lgsm_version="140516"
# Description: Sends a test email notification. # Description: Sends a test email notification.
local modulename="Comms Check" local modulename="Comms Check"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh check.sh
info_config.sh info_config.sh
if [ "${emailnotification}" = "on" ]||[ "${pushbulletnotification}" = "on" ]; then if [ "${emailnotification}" = "on" ]||[ "${pushbulletnotification}" = "on" ]; then

13
lgsm/functions/comms_pushbullet.sh

@ -6,13 +6,6 @@ lgsm_version="140516"
# Description: Notifications using pushbullet. # Description: Notifications using pushbullet.
fn_comms_pushbullet() { curl -u """${pushbullettoken}"":" -d type="note" -d body="${commsbody}" -d title="${commstitle}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1
PUSHBULLET_TOKEN="userTokenHere"; fn_print_ok_nl "Sent Pushbullet notification"
curl -u """$pushbullettoken"":" -d type="note" -d body="${commsbody}" -d title="${commstitle}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1 fn_scriptlog "Sent Pushbullet notification"
echo "Message send to pushbullet.";
}
pushbulletnotification="on"
pushbullettoken=""
commsbody="${servicename} process not running"
fn_comms_pushbullet

Loading…
Cancel
Save