mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-24 04:44:26 +02:00
global-functions: $DownloadPackage: check status of certificate download
This commit is contained in:
parent
151630b674
commit
abb97601ce
1 changed files with 4 additions and 1 deletions
|
@ -212,6 +212,7 @@
|
|||
|
||||
:global CertificateAvailable;
|
||||
:global CleanFilePath;
|
||||
:global LogPrintExit;
|
||||
:global WaitForFile;
|
||||
|
||||
:if ([ :len $PkgName ] = 0) do={ return false; }
|
||||
|
@ -224,7 +225,9 @@
|
|||
}
|
||||
:local PkgDest [ $CleanFilePath ($PkgDir . "/" . $PkgFile) ];
|
||||
|
||||
$CertificateAvailable "Let's Encrypt Authority X3";
|
||||
:if ([ $CertificateAvailable "Let's Encrypt Authority X3" ] = false) do={
|
||||
$LogPrintExit error ("Downloading required certificate failed.") true;
|
||||
}
|
||||
|
||||
:local Retry 3;
|
||||
:while ($Retry > 0) do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue