mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 21:14:29 +02:00
check-routeros-update: send just one notification
This commit is contained in:
parent
0f0d539c67
commit
8b23c1e925
1 changed files with 5 additions and 0 deletions
|
@ -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" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue