mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-02-23 08:39:34 +00:00
Update check-routeros-update.rsc
Neighbour version can have a date suffix. This changes to match only on the benginning.
This commit is contained in:
parent
313e026229
commit
7849642c0b
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ $LogPrintExit2 debug $0 ("Checking for updates...") false;
|
||||||
}
|
}
|
||||||
|
|
||||||
:if ($SafeUpdateNeighbor = true && [ :len [ /ip/neighbor/find where \
|
:if ($SafeUpdateNeighbor = true && [ :len [ /ip/neighbor/find where \
|
||||||
version=($Update->"latest-version" . " (" . $Update->"channel" . ")") ] ] > 0) do={
|
version~($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; \
|
||||||
subject=([ $SymbolForNotification "sparkles" ] . "RouterOS update: " . $Update->"latest-version"); \
|
subject=([ $SymbolForNotification "sparkles" ] . "RouterOS update: " . $Update->"latest-version"); \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue