global-functions: $CertificateDownload: move delay up

We still had cases where fetch misbehaves... But this was permanent.
Perhaps we should not touch the certificate too early...
This commit is contained in:
Christian Hesse 2024-01-08 00:25:55 +01:00
parent 8c458592f5
commit 4249ad61df

View file

@ -149,6 +149,7 @@
dst-path=$LocalFileName as-value;
$WaitForFile $LocalFileName;
/certificate/import file-name=$LocalFileName passphrase="" as-value;
:delay 1s;
/file/remove $LocalFileName;
:foreach Cert in=[ /certificate/find where name~("^" . $LocalFileName . "_[0-9]+\$") ] do={
@ -159,7 +160,6 @@
"CommonName \"" . $CommonName . "\"!") false;
:return false;
}
:delay 1s;
:return true;
}