check-routeros-update: send just one notification

This commit is contained in:
Christian Hesse 2020-07-07 09:05:06 +02:00
parent 0f0d539c67
commit 8b23c1e925

View file

@ -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" . \