diff options
author | Christian Hesse <mail@eworm.de> | 2019-05-23 12:16:34 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-05-23 12:19:01 +0200 |
commit | 0c45102798711fff3d06718c89ecf494ed166ad5 (patch) | |
tree | dee8b923699903623d7ffbe175cda9994a103cb0 | |
parent | cf3cd8939802c3a88f931f23af9c61ca120c1824 (diff) |
check-routeros-update: drop literal 'notification'
-rw-r--r-- | check-routeros-update | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/check-routeros-update b/check-routeros-update index 4d1cf8f..7a57a0e 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -2,7 +2,7 @@ # RouterOS script: check-routeros-update # Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de> # -# check for RouterOS update, send notification e-mails +# check for RouterOS update, send notification and/or install :global Identity; :global SafeUpdateUrl; @@ -48,7 +48,7 @@ } :if ($Result->"status" = "finished" && $Result->"data" = $LatestVersion) do={ :log info ("Version " . $LatestVersion . " is considered safe, updating..."); - $SendNotification ("RouterOS update notification") \ + $SendNotification ("RouterOS update") \ ("Version " . $LatestVersion . " is considered safe for " . $Channel . \ ", updating on " . $Identity . "..."); $Update; @@ -70,8 +70,8 @@ :error "Already sent notification."; } - $SendNotification ("RouterOS update notification") \ - ("There is a RouterOS update available\n\n" . \ + $SendNotification ("RouterOS update") \ + ("There is a RouterOS update available.\n\n" . \ "Board name: " . $BoardName . "\n" . \ "Model: " . $Model . "\n" . \ "Serial number: " . $SerialNumber . "\n" . \ |