aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-03-06 11:37:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-03-12 15:27:15 +0100
commit53ff8fbf97afa63192dbc43cc3900bfd84069af0 (patch)
treeca493413d71f7b5b5ea0f39b6ed546553f94391d /check-certificates.rsc
parenta7cd7d95008420a823ed2fde15759307e6fb2f37 (diff)
check-certificates: exit block on failed import
Diffstat (limited to 'check-certificates.rsc')
-rw-r--r--check-certificates.rsc1
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;