1 2 3 4 5 6 7 8 9
#!/usr/bin/bash set -e while true; do certbot renew --deploy-hook "nginx -s reload" echo "Sleep one day before next certbot renew." sleep 1d done