Skip to content

Commit 60b0c1e

Browse files
committed
patch: Don't chock if cert. chain is missing
> this condition is valid where a default cert. isn't issued (.CN == {{tld}}` (e.g. `api.{{tld}}` but not `{{tld}}`) https://balena.fibery.io/Work/Project/Anton-works-1422
1 parent 9313782 commit 60b0c1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entry.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ touch "${CERTS}/.ready"
710710
remove_update_lock
711711

712712
while true; do
713-
check_cert_expiry "${EXPORT_CERT_CHAIN_PATH}"
714-
check_self_signed_certs_expiry
713+
[[ -s "$EXPORT_CERT_CHAIN_PATH" ]] && check_cert_expiry "${EXPORT_CERT_CHAIN_PATH}" # cert. chain may not exist (by design)
714+
check_self_signed_certs_expiry # .. but at least some self-signed certs. should
715715
sleep 1d
716716
done

0 commit comments

Comments
 (0)