aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-12-04 22:10:15 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-12-05 00:11:19 +0100
commit9fb596135e335f0ca4cfc1a8ad6047b58ba319d5 (patch)
tree8365f7689863ab75a2b9b197ffb52668d564fa4b
parenta12ccba29e93372e81e41ed1ceeb57cba74e3602 (diff)
check-certificates: properly renew from template
-rw-r--r--check-certificates.rsc2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc
index bc6f43a..45e18e4 100644
--- a/check-certificates.rsc
+++ b/check-certificates.rsc
@@ -146,7 +146,7 @@ $WaitFullyConnected;
}
}
- :if ($CertVal->"fingerprint" != [ /certificate/get $Cert fingerprint ]) do={
+ :if ([ :len ($CertVal->"fingerprint") ] > 0 && $CertVal->"fingerprint" != [ /certificate/get $Cert fingerprint ]) do={
$LogPrintExit2 debug $0 ("Certificate '" . $CertVal->"name" . "' was updated in place.") false;
:set CertVal [ /certificate/get $Cert ];
} else={