global-functions: change certificate literal with global-config param

To allow installation from custom server, URL and cert need
to be changed in global-config-overlay.
This commit is contained in:
Miquel Bonastre 2025-04-16 10:34:55 +02:00
parent d80f43a1c8
commit a47d8effb6
2 changed files with 4 additions and 1 deletions

View file

@ -1130,6 +1130,7 @@
:global ScriptUpdatesBaseUrl;
:global ScriptUpdatesCRLF;
:global ScriptUpdatesUrlSuffix;
:global ScriptUpdatesCertCN;
:global CertificateAvailable;
:global EitherOr;
@ -1144,7 +1145,7 @@
:global SymbolForNotification;
:global ValidateSyntax;
:if ([ $CertificateAvailable "ISRG Root X2" ] = false) do={
:if ([ $CertificateAvailable $ScriptUpdatesCertCN ] = false) do={
$LogPrint warning $0 ("Downloading certificate failed, trying without.");
}