check-routeros-update: make notifications silent

This commit is contained in:
Christian Hesse 2019-08-18 19:16:08 +02:00
parent a78d9d0470
commit 5a3076c7c3

View file

@ -52,7 +52,7 @@
:log info ("Version " . $Update->"latest-version" . " is considered safe, updating...");
$SendNotification ("RouterOS update") \
("Version " . $Update->"latest-version" . " is considered safe for " . $Update->"channel" . \
", updating on " . $Identity . "...");
", updating on " . $Identity . "...") "" "true";
$DoUpdate;
}
}
@ -81,6 +81,7 @@
"Channel: " . $Update->"channel" . "\n" . \
"Installed: " . $Update->"installed-version" . "\n" . \
"Available: " . $Update->"latest-version" . "\n\n" .\
"https://mikrotik.com/download/changelogs/" . $Update->"channel" . "-release-tree");
"https://mikrotik.com/download/changelogs/" . $Update->"channel" . "-release-tree") \
"" "true";
:set SentRouterosUpdateNotification ($Update->"latest-version");
}