Linux – Certbot Renew Hook (Bash)

Below is a ready-to-use script. Review and adapt variables to your environment.

#!/usr/bin/env bash
# Place at /etc/letsencrypt/renewal-hooks/deploy/reload.sh
systemctl reload nginx || true
systemctl reload haproxy || true
  

← Back to SQL