1
0
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:
Christian Hesse
2020-02-24 20:10:38 +01:00
parent 0326a7222c
commit 801608eeaf

View File

@@ -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={