aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-08-21 23:13:47 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-08-21 23:13:47 +0200
commitb68b997c1ea0882f89df4425ed39c6ce0dc653aa (patch)
treee7d379da74f30fe22300c2bc72322dac57e2e5fd /check-certificates
parenteaffb1dbd27689015d7bcfaa9ab19f81a75fef24 (diff)
check-certificates: wait to be fully connected
Diffstat (limited to 'check-certificates')
-rw-r--r--check-certificates6
1 files changed, 2 insertions, 4 deletions
diff --git a/check-certificates b/check-certificates
index 7a587e1..a0e5bce 100644
--- a/check-certificates
+++ b/check-certificates
@@ -17,18 +17,16 @@
:global ParseKeyValueStore;
:global SendNotification;
:global SymbolForNotification;
-:global TimeIsSync;
:global UrlEncode;
:global WaitForFile;
+:global WaitFullyConnected;
:local FormatExpire do={
:global CharacterReplace;
:return [ $CharacterReplace [ $CharacterReplace [ :tostr $1 ] "w" "w " ] "d" "d " ];
}
-:if ([ $TimeIsSync ] = false) do={
- $LogPrintExit warning ("Time is not yet synchronized.") true;
-}
+$WaitFullyConnected;
:foreach Cert in=[ / certificate find where !revoked !ca !scep-url expires-after<3w ] do={
:local CertVal [ / certificate get $Cert ];