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

@ -220,11 +220,13 @@
# This is the base url to fetch scripts from. # This is the base url to fetch scripts from.
:global ScriptUpdatesBaseUrl "https://rsc.eworm.de/main/"; :global ScriptUpdatesBaseUrl "https://rsc.eworm.de/main/";
:global ScriptUpdatesCertCN "ISRG Root X2";
# alternative urls - main: stable code - next: currently in development # alternative urls - main: stable code - next: currently in development
#:global ScriptUpdatesBaseUrl "https://rsc.eworm.de/next/"; #:global ScriptUpdatesBaseUrl "https://rsc.eworm.de/next/";
#:global ScriptUpdatesBaseUrl "https://git.eworm.de/cgit/routeros-scripts/plain/"; #:global ScriptUpdatesBaseUrl "https://git.eworm.de/cgit/routeros-scripts/plain/";
#:global ScriptUpdatesBaseUrl "https://raw.githubusercontent.com/eworm-de/routeros-scripts/main/"; #:global ScriptUpdatesBaseUrl "https://raw.githubusercontent.com/eworm-de/routeros-scripts/main/";
#:global ScriptUpdatesBaseUrl "https://raw.githubusercontent.com/eworm-de/routeros-scripts/next/"; #:global ScriptUpdatesBaseUrl "https://raw.githubusercontent.com/eworm-de/routeros-scripts/next/";
#:global ScriptUpdatesCertCN "USERTrust RSA Certification Authority";
#:global ScriptUpdatesBaseUrl "https://gitlab.com/eworm-de/routeros-scripts/raw/main/"; #:global ScriptUpdatesBaseUrl "https://gitlab.com/eworm-de/routeros-scripts/raw/main/";
#:global ScriptUpdatesBaseUrl "https://gitlab.com/eworm-de/routeros-scripts/raw/next/"; #:global ScriptUpdatesBaseUrl "https://gitlab.com/eworm-de/routeros-scripts/raw/next/";
:global ScriptUpdatesUrlSuffix ""; :global ScriptUpdatesUrlSuffix "";

View file

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