mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
check-certificates: use $LogAndError
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
:global TimeIsSync;
|
||||
:global UrlEncode;
|
||||
:global WaitForFile;
|
||||
:global LogAndError;
|
||||
|
||||
:local FormatExpire do={
|
||||
:global CharacterReplace;
|
||||
@@ -21,8 +22,7 @@
|
||||
}
|
||||
|
||||
:if ($TimeIsSync = false) do={
|
||||
:log warning "Time is not yet synchronized.";
|
||||
:error "Warning: See log for details.";
|
||||
$LogAndError "Time is not yet synchronized.";
|
||||
}
|
||||
|
||||
:foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={
|
||||
|
Reference in New Issue
Block a user