mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
capsman-rolling-upgrade: lock against multiple invocation
This commit is contained in:
@ -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 ];
|
||||
|
Reference in New Issue
Block a user