mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-routeros-update: send just one notification
This commit is contained in:
@@ -98,6 +98,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:if ($NumInstalled > $NumLatest) do={
|
:if ($NumInstalled > $NumLatest) do={
|
||||||
|
:if ($SentRouterosUpdateNotification = $Update->"latest-version") do={
|
||||||
|
$LogPrintExit info ("Already sent the RouterOS downgrade notification for version " . \
|
||||||
|
$Update->"latest-version" . ".") true;
|
||||||
|
}
|
||||||
|
|
||||||
$SendNotification ("RouterOS version") \
|
$SendNotification ("RouterOS version") \
|
||||||
("A different RouterOS version " . ($Update->"latest-version") . \
|
("A different RouterOS version " . ($Update->"latest-version") . \
|
||||||
" is available for " . $Identity . ", but it is a downgrade.\n\n" . \
|
" is available for " . $Identity . ", but it is a downgrade.\n\n" . \
|
||||||
|
Reference in New Issue
Block a user