Daniel Gibbs 10 лет назад
Родитель
Сommit
a443b2636a
2 измененных файлов с 5 добавлено и 11 удалено
  1. 2 1
      lgsm/functions/command_comms_check.sh
  2. 3 10
      lgsm/functions/comms_pushbullet.sh

+ 2 - 1
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

+ 3 - 10
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
+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"