mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user