From abb97601cee8772122a1baba470918e66a06fe00 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 3 Apr 2020 14:43:36 +0200 Subject: global-functions: $DownloadPackage: check status of certificate download --- global-functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'global-functions') 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={ -- cgit v1.2.3-54-g00ecf