mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
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:
parent
8c458592f5
commit
4249ad61df
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue