1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

capsman-download-packages: lock against multiple invocation

This commit is contained in:
Christian Hesse
2019-12-05 09:48:50 +01:00
parent 9548641b60
commit b8db93918f

View File

@ -5,8 +5,11 @@
#
# download and cleanup packages for CAP installation from CAPsMAN
:global DownloadPackage;
:global CleanFilePath;
:global DownloadPackage;
:global ScriptLock;
$ScriptLock "capsman-download-packages";
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
:local InstalledVersion [ / system package update get installed-version ];