From a443b2636a1e7632f0742af4264ffdda845af0f0 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 14 May 2016 22:41:52 +0100 Subject: [PATCH] misc improvements --- lgsm/functions/command_comms_check.sh | 3 ++- lgsm/functions/comms_pushbullet.sh | 13 +++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/lgsm/functions/command_comms_check.sh b/lgsm/functions/command_comms_check.sh index 6caafe777..dcf173661 100644 --- a/lgsm/functions/command_comms_check.sh +++ b/lgsm/functions/command_comms_check.sh @@ -2,12 +2,13 @@ # LGSM command_email_test.sh function # Author: Daniel Gibbs # Website: https://gameservermanagers.com -lgsm_version="271215" +lgsm_version="140516" # Description: Sends a test email notification. local modulename="Comms Check" function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" + check.sh info_config.sh if [ "${emailnotification}" = "on" ]||[ "${pushbulletnotification}" = "on" ]; then diff --git a/lgsm/functions/comms_pushbullet.sh b/lgsm/functions/comms_pushbullet.sh index 3ff45e55d..2f0138a0c 100644 --- a/lgsm/functions/comms_pushbullet.sh +++ b/lgsm/functions/comms_pushbullet.sh @@ -6,13 +6,6 @@ lgsm_version="140516" # Description: Notifications using pushbullet. -fn_comms_pushbullet() { - PUSHBULLET_TOKEN="userTokenHere"; - curl -u """$pushbullettoken"":" -d type="note" -d body="${commsbody}" -d title="${commstitle}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1 - echo "Message send to pushbullet."; -} - -pushbulletnotification="on" -pushbullettoken="" -commsbody="${servicename} process not running" -fn_comms_pushbullet \ No newline at end of file +curl -u """${pushbullettoken}"":" -d type="note" -d body="${commsbody}" -d title="${commstitle}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1 +fn_print_ok_nl "Sent Pushbullet notification" +fn_scriptlog "Sent Pushbullet notification"