diff options
author | Christian Hesse <mail@eworm.de> | 2020-04-03 16:45:28 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-04-03 16:59:10 +0200 |
commit | 596fb5f83582b982c0ec336c8cb65e8b76665ba1 (patch) | |
tree | 10d7f2673cffb94bb91242b1235bb16e92cf5ccc /global-functions | |
parent | 7cdeb9185e10ed35b5590087e035d29626eacb08 (diff) |
global-functions: $CertificateDownload: use $LogPrintExit
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/global-functions b/global-functions index 9375688..3dba487 100644 --- a/global-functions +++ b/global-functions @@ -88,11 +88,12 @@ :global ScriptUpdatesUrlSuffix; :global CertificateNameByCN; + :global LogPrintExit; :global UrlEncode; :global WaitForFile; - :log info ("Downloading and importing certificate with " . \ - "CommonName \"" . $CommonName . "\"."); + $LogPrintExit info ("Downloading and importing certificate with " . \ + "CommonName \"" . $CommonName . "\".") false; :do { :local LocalFileName ($CommonName . ".pem"); :local UrlFileName ([ $UrlEncode $CommonName ] . ".pem"); @@ -108,7 +109,7 @@ $CertificateNameByCN [ / certificate get $Cert common-name ]; } } on-error={ - :log warning "Failed imprting certificate!"; + $LogPrintExit warning ("Failed imprting certificate!") false; :return false; } :return true; |