aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 20:10:38 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-26 11:51:49 +0100
commit801608eeaf86d3855c8a3883d77b477a1ff36cf3 (patch)
treefcd7b951efba66f64cdcb1638f4b6097bf86c190
parent0326a7222c9c4f2dcb588826d355c94e9454976f (diff)
check-certificates: use $LogAndError
-rw-r--r--check-certificates4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-certificates b/check-certificates
index b0c2c60..ccc7b15 100644
--- a/check-certificates
+++ b/check-certificates
@@ -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={