check-certificates: exit block on failed import

This commit is contained in:
Christian Hesse 2024-03-06 11:37:50 +01:00
parent a7cd7d9500
commit 53ff8fbf97

View file

@ -152,6 +152,7 @@
:set ImportSuccess [ $CheckCertificatesDownloadImport $LastName ];
}
}
:if ($ImportSuccess = false) do={ :error false; }
:if ([ :len ($CertVal->"fingerprint") ] > 0 && $CertVal->"fingerprint" != [ /certificate/get $Cert fingerprint ]) do={
$LogPrintExit2 debug $ScriptName ("Certificate '" . $CertVal->"name" . "' was updated in place.") false;