mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-26 11:38:36 +02:00
capsman-rolling-upgrade: lock against multiple invocation
This commit is contained in:
parent
b8db93918f
commit
3db466f476
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@
|
|||
#
|
||||
# upgrade CAPs one after another
|
||||
|
||||
:global ScriptLock;
|
||||
|
||||
$ScriptLock "capsman-rolling-upgrade";
|
||||
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
|
||||
:local RemoteCapCount [ /caps-man remote-cap print count-only ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue