aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--check-routeros-update5
1 files changed, 5 insertions, 0 deletions
diff --git a/check-routeros-update b/check-routeros-update
index 5b5872d..cc44af1 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -98,6 +98,11 @@
}
: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") \
("A different RouterOS version " . ($Update->"latest-version") . \
" is available for " . $Identity . ", but it is a downgrade.\n\n" . \