mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 20:54:28 +02:00
capsman-rolling-upgrade: log with info, give identity
This commit is contained in:
parent
43d77cb62d
commit
65c76b8409
1 changed files with 3 additions and 2 deletions
|
@ -12,8 +12,9 @@
|
|||
:local Delay (600 / $RemoteCapCount);
|
||||
:if ($Delay > 120) do={ :set Delay 120; }
|
||||
:foreach RemoteCap in=[ / caps-man remote-cap find where version!=$InstalledVersion ] do={
|
||||
:local RemoteCapName [ / caps-man remote-cap get $RemoteCap name ];
|
||||
:log debug ("Starting upgrade for CAP " . $RemoteCapName . "...");
|
||||
:local RemoteCapVal [ / caps-man remote-cap get $RemoteCap ];
|
||||
:log info ("Starting upgrade for " . $RemoteCapVal->"name" . \
|
||||
" (" . $RemoteCapVal->"identity" . ")...");
|
||||
/ caps-man remote-cap upgrade $RemoteCap;
|
||||
:delay ($Delay . "s");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue