Skip to content

Commit

Permalink
Fix certificate watching (auto renew).
Browse files Browse the repository at this point in the history
  • Loading branch information
navossoc authored and SaraSmiseth committed Oct 9, 2020
1 parent e19c75b commit c8e1ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/usr/local/bin/certs_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ elif [ "$1" = "update_certs" ]; then
_normalize_certs "$NORMALIZED_CERT_PATH"
[ $? -ne 0 ] && exit 1

# Compare Old and New key
if cmp --silent "$NORMALIZED_CERT_PATH"/privkey.pem "$LIVE_CERT_PATH"/privkey.pem; then
# Compare old and new certificates
if cmp --silent "$NORMALIZED_CERT_PATH"/fullchain.pem "$LIVE_CERT_PATH"/fullchain.pem; then
echo "[INFO] Live Certificates match"
rm -rf "$CERT_TEMP_PATH"
exit 1
Expand Down

0 comments on commit c8e1ef3

Please sign in to comment.