aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-04-03 14:43:36 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-04-03 15:03:27 +0200
commitabb97601cee8772122a1baba470918e66a06fe00 (patch)
treeb847918df1e67c7965ab7e2f11580a3e3f6e14a9 /global-functions
parent151630b6741d19c439713d1e3f31529052a41697 (diff)
global-functions: $DownloadPackage: check status of certificate download
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index bcc35f5..3fd45c7 100644
--- a/global-functions
+++ b/global-functions
@@ -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={