mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-30 13:14:27 +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);
|
:local Delay (600 / $RemoteCapCount);
|
||||||
:if ($Delay > 120) do={ :set Delay 120; }
|
:if ($Delay > 120) do={ :set Delay 120; }
|
||||||
:foreach RemoteCap in=[ / caps-man remote-cap find where version!=$InstalledVersion ] do={
|
:foreach RemoteCap in=[ / caps-man remote-cap find where version!=$InstalledVersion ] do={
|
||||||
:local RemoteCapName [ / caps-man remote-cap get $RemoteCap name ];
|
:local RemoteCapVal [ / caps-man remote-cap get $RemoteCap ];
|
||||||
:log debug ("Starting upgrade for CAP " . $RemoteCapName . "...");
|
:log info ("Starting upgrade for " . $RemoteCapVal->"name" . \
|
||||||
|
" (" . $RemoteCapVal->"identity" . ")...");
|
||||||
/ caps-man remote-cap upgrade $RemoteCap;
|
/ caps-man remote-cap upgrade $RemoteCap;
|
||||||
:delay ($Delay . "s");
|
:delay ($Delay . "s");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue