mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-16 14:09:32 +00:00
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:
parent
d80f43a1c8
commit
a47d8effb6
2 changed files with 4 additions and 1 deletions
|
|
@ -220,11 +220,13 @@
|
|||
|
||||
# This is the base url to fetch scripts from.
|
||||
:global ScriptUpdatesBaseUrl "https://rsc.eworm.de/main/";
|
||||
:global ScriptUpdatesCertCN "ISRG Root X2";
|
||||
# alternative urls - main: stable code - next: currently in development
|
||||
#:global ScriptUpdatesBaseUrl "https://rsc.eworm.de/next/";
|
||||
#: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/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/next/";
|
||||
:global ScriptUpdatesUrlSuffix "";
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue