aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions7
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;