aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-07 09:05:06 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-07 09:27:40 +0200
commit8b23c1e925d8512df2d84f6518a33e2e9c56d128 (patch)
treefc6999146a3b7764421caa534db3eb22a2e8222e
parent0f0d539c67ed98a6d3a6b0ae145c3a20e4f28051 (diff)
check-routeros-update: send just one notification
-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" . \