#!/bin/sh # Certbot deploy hook, installed as # /etc/letsencrypt/renewal-hooks/deploy/reload-nginx.sh (mode 755). # Certbot runs it only after a certificate was actually renewed. The reload # is skipped when the new configuration does not pass the syntax test, so a # bad file cannot take the running nginx down. set -eu nginx -t systemctl reload nginx