mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 10:15:05 +02:00
global-functions: rename $FetchUserAgent -> $FetchUserAgentStr
... to make sure the function does not clash with the variable we had before, as this causes issue with news and changes notification.
This commit is contained in:
parent
bbdc9c65f5
commit
4df1468e25
4 changed files with 13 additions and 13 deletions
|
@ -39,7 +39,7 @@
|
|||
|
||||
:global CertificateNameByCN;
|
||||
:global EscapeForRegEx;
|
||||
:global FetchUserAgent;
|
||||
:global FetchUserAgentStr;
|
||||
:global LogPrint;
|
||||
:global UrlEncode;
|
||||
:global WaitForFile;
|
||||
|
@ -49,7 +49,7 @@
|
|||
:foreach Type in={ ".pem"; ".p12" } do={
|
||||
:local CertFileName ([ $UrlEncode $Name ] . $Type);
|
||||
:do {
|
||||
/tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgent $ScriptName ] }) \
|
||||
/tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) \
|
||||
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
|
||||
$WaitForFile $CertFileName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue