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 TimeIsSync;
:global UrlEncode; :global UrlEncode;
:global WaitForFile; :global WaitForFile;
:global LogAndError;
:local FormatExpire do={ :local FormatExpire do={
:global CharacterReplace; :global CharacterReplace;
@ -21,8 +22,7 @@
} }
:if ($TimeIsSync = false) do={ :if ($TimeIsSync = false) do={
:log warning "Time is not yet synchronized."; $LogAndError "Time is not yet synchronized.";
:error "Warning: See log for details.";
} }
:foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={ :foreach Cert in=[ / certificate find where !revoked !ca expires-after<3w ] do={