mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
capsman-rolling-upgrade: lock against multiple invocation
This commit is contained in:
parent
b8db93918f
commit
3db466f476
|
@ -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…
Reference in a new issue