aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-12-18 17:04:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-12-18 20:32:29 +0100
commit40dc2415d3c414d77f31084936040d586d8c8acb (patch)
treee91c776d258043369a4ebe6b5b83e00e3140d091 /global-functions
parent05a9531dac25c1ab0cc9fc8533818647ef5f6f6c (diff)
global-functions: $ScriptInstallUpdate: make Let's Encrypt certificate semi-mandatory
... and remove the migration from changes.
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions
index b2337bc..9ee2d00 100644
--- a/global-functions
+++ b/global-functions
@@ -552,11 +552,16 @@
:global ScriptUpdatesUrlSuffix;
:global SentConfigChangesNotification;
+ :global CertificateAvailable;
:global LogPrintExit;
:global ParseKeyValueStore;
:global SendNotification;
:global SymbolForNotification;
+ :if ([ $CertificateAvailable "R3" ] = false) do={
+ $LogPrintExit warning ("Downloading certificate failed, trying without.") false;
+ }
+
:foreach Script in=$Scripts do={
:if ([ :len [ / system script find where name=$Script ] ] = 0) do={
$LogPrintExit info ("Adding new script: " . $Script) false;