Commit 0c451027 authored by Christian Hesse's avatar Christian Hesse

check-routeros-update: drop literal 'notification'

parent cf3cd893
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# RouterOS script: check-routeros-update # RouterOS script: check-routeros-update
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de> # 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 Identity;
:global SafeUpdateUrl; :global SafeUpdateUrl;
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
} }
:if ($Result->"status" = "finished" && $Result->"data" = $LatestVersion) do={ :if ($Result->"status" = "finished" && $Result->"data" = $LatestVersion) do={
:log info ("Version " . $LatestVersion . " is considered safe, updating..."); :log info ("Version " . $LatestVersion . " is considered safe, updating...");
$SendNotification ("RouterOS update notification") \ $SendNotification ("RouterOS update") \
("Version " . $LatestVersion . " is considered safe for " . $Channel . \ ("Version " . $LatestVersion . " is considered safe for " . $Channel . \
", updating on " . $Identity . "..."); ", updating on " . $Identity . "...");
$Update; $Update;
...@@ -70,8 +70,8 @@ ...@@ -70,8 +70,8 @@
:error "Already sent notification."; :error "Already sent notification.";
} }
$SendNotification ("RouterOS update notification") \ $SendNotification ("RouterOS update") \
("There is a RouterOS update available\n\n" . \ ("There is a RouterOS update available.\n\n" . \
"Board name: " . $BoardName . "\n" . \ "Board name: " . $BoardName . "\n" . \
"Model: " . $Model . "\n" . \ "Model: " . $Model . "\n" . \
"Serial number: " . $SerialNumber . "\n" . \ "Serial number: " . $SerialNumber . "\n" . \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment