check-certificates: properly renew from template

This commit is contained in:
Christian Hesse 2023-12-04 22:10:15 +01:00
parent a12ccba29e
commit 9fb596135e

View file

@ -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={