diff options
author | Christian Hesse <mail@eworm.de> | 2024-03-06 11:37:50 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-03-12 15:27:15 +0100 |
commit | 53ff8fbf97afa63192dbc43cc3900bfd84069af0 (patch) | |
tree | ca493413d71f7b5b5ea0f39b6ed546553f94391d | |
parent | a7cd7d95008420a823ed2fde15759307e6fb2f37 (diff) |
check-certificates: exit block on failed import
-rw-r--r-- | check-certificates.rsc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc index 69d9097..1968641 100644 --- a/check-certificates.rsc +++ b/check-certificates.rsc @@ -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; |