mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-15 23:37:51 +02:00
check-routeros-update: also match platform for neighbors
This commit is contained in:
parent
fbf55292a4
commit
be97de3627
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ $LogPrintExit2 debug $0 ("Checking for updates...") false;
|
||||||
$DoUpdate;
|
$DoUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($SafeUpdateNeighbor = true && [ :len [ /ip/neighbor/find where \
|
:if ($SafeUpdateNeighbor = true && [ :len [ /ip/neighbor/find where platform="MikroTik" \
|
||||||
version~("^" . [ $EscapeForRegEx ($Update->"latest-version" . " (" . $Update->"channel" . ")") ]) ] ] > 0) do={
|
version~("^" . [ $EscapeForRegEx ($Update->"latest-version" . " (" . $Update->"channel" . ")") ]) ] ] > 0) do={
|
||||||
$LogPrintExit2 info $0 ("Seen a neighbor running version " . $Update->"latest-version" . ", updating...") false;
|
$LogPrintExit2 info $0 ("Seen a neighbor running version " . $Update->"latest-version" . ", updating...") false;
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue