mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 04:24:29 +02:00
global-functions: $CertificateDownload: remove with find...
... to make sure this does not break when the file does no longer exist. Starting with RouterOS 7.15rc1 the file is automatically removed on import.
This commit is contained in:
parent
b0cd53f813
commit
0f2a4aedab
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@
|
||||||
$WaitForFile $FileName;
|
$WaitForFile $FileName;
|
||||||
/certificate/import file-name=$FileName passphrase="" as-value;
|
/certificate/import file-name=$FileName passphrase="" as-value;
|
||||||
:delay 1s;
|
:delay 1s;
|
||||||
/file/remove $FileName;
|
/file/remove [ find where name=$FileName ];
|
||||||
|
|
||||||
:foreach Cert in=[ /certificate/find where name~("^" . $FileName . "_[0-9]+\$") ] do={
|
:foreach Cert in=[ /certificate/find where name~("^" . $FileName . "_[0-9]+\$") ] do={
|
||||||
$CertificateNameByCN [ /certificate/get $Cert common-name ];
|
$CertificateNameByCN [ /certificate/get $Cert common-name ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue