mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-09 12:44:30 +02:00
check-certificates: use $RmFile
This commit is contained in:
parent
63db96bdcc
commit
6570a84904
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
||||||
:global EscapeForRegEx;
|
:global EscapeForRegEx;
|
||||||
:global FetchUserAgentStr;
|
:global FetchUserAgentStr;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global RmFile;
|
||||||
:global UrlEncode;
|
:global UrlEncode;
|
||||||
:global WaitForFile;
|
:global WaitForFile;
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@
|
||||||
:set DecryptionFailed false;
|
:set DecryptionFailed false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/file/remove [ find where name=$CertFileName ];
|
$RmFile $CertFileName;
|
||||||
|
|
||||||
:if ($DecryptionFailed = true) do={
|
:if ($DecryptionFailed = true) do={
|
||||||
$LogPrint warning $ScriptName ("Decryption failed for certificate file '" . $CertFileName . "'.");
|
$LogPrint warning $ScriptName ("Decryption failed for certificate file '" . $CertFileName . "'.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue