global-functions: generate user agent string in function...

... and add the caller and my shortened url.
This commit is contained in:
Christian Hesse 2024-03-16 23:10:47 +01:00
parent 576a2c97cf
commit eb7919c1d8
3 changed files with 19 additions and 14 deletions

View file

@ -48,7 +48,7 @@
:foreach Type in={ ".pem"; ".p12" } do={
:local CertFileName ([ $UrlEncode $Name ] . $Type);
:do {
/tool/fetch check-certificate=yes-without-crl http-header-field=({ $FetchUserAgent }) \
/tool/fetch check-certificate=yes-without-crl http-header-field=({ [ $FetchUserAgent $0 ] }) \
($CertRenewUrl . $CertFileName) dst-path=$CertFileName as-value;
$WaitForFile $CertFileName;