diff options
author | Christian Hesse <mail@eworm.de> | 2023-12-04 22:10:15 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-12-05 00:11:19 +0100 |
commit | 9fb596135e335f0ca4cfc1a8ad6047b58ba319d5 (patch) | |
tree | 8365f7689863ab75a2b9b197ffb52668d564fa4b | |
parent | a12ccba29e93372e81e41ed1ceeb57cba74e3602 (diff) |
check-certificates: properly renew from template
-rw-r--r-- | check-certificates.rsc | 2 |
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={ |