Skip to content

Commit 0a9f319

Browse files
committed
refactor: more verbose script
1 parent 7e44a36 commit 0a9f319

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

renew_cert.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ certbot renew --webroot --webroot-path "$DIR/letsencrypt"
2626
CERT_HASH_AFTER=$(md5sum $TLS_CERT_FILE | awk '{ print $1 }')
2727

2828
if [[ "$CERT_HASH_BEFORE" != "$CERT_HASH_AFTER" ]]; then
29+
echo "The certificate has changed. Gracefully restarting the server."
2930
bash "$DIR/admin/gracefulRestart.sh"
31+
else
32+
echo "The certificate has not changed."
3033
fi

0 commit comments

Comments
 (0)