mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 10:04:28 +02:00
capsman-download-packages: lock against multiple invocation
This commit is contained in:
parent
9548641b60
commit
b8db93918f
1 changed files with 4 additions and 1 deletions
|
@ -5,8 +5,11 @@
|
||||||
#
|
#
|
||||||
# download and cleanup packages for CAP installation from CAPsMAN
|
# download and cleanup packages for CAP installation from CAPsMAN
|
||||||
|
|
||||||
:global DownloadPackage;
|
|
||||||
:global CleanFilePath;
|
:global CleanFilePath;
|
||||||
|
:global DownloadPackage;
|
||||||
|
:global ScriptLock;
|
||||||
|
|
||||||
|
$ScriptLock "capsman-download-packages";
|
||||||
|
|
||||||
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
|
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
|
||||||
:local InstalledVersion [ / system package update get installed-version ];
|
:local InstalledVersion [ / system package update get installed-version ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue