agent-installer: fail where it should fail

This commit is contained in:
Thomas Gelf 2020-06-06 19:43:14 +02:00
parent 50521bdecb
commit d7364e45e8

View File

@ -177,7 +177,7 @@ elif [ -z "${ICINGA2_DRYRUN}" ]; then
--cert "${ICINGA2_SSLDIR}/${ICINGA2_NODENAME}.crt" \
--trustedcert "${ICINGA2_SSLDIR}/trusted-master.crt" \
--ca "${ICINGA2_SSLDIR}/ca.crt"
then "Could not retrieve final certificate from host ${ICINGA2_CA_NODE}"
then fail "Could not retrieve final certificate from host ${ICINGA2_CA_NODE}"
fi
else
info "Would create certificates under ${ICINGA2_SSLDIR}, but in dry-run!"