Skip to content

Commit

Permalink
certbot: Reload nginx after renewal
Browse files Browse the repository at this point in the history
Certbot did our first successful renewal, but it wasn't configured to
tell nginx about the renewal!  This change should fix that, by sending a
SIGHUP to the s6 service directory for nginx.
  • Loading branch information
akkornel committed Mar 2, 2024
1 parent 588be95 commit b688413
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion root/etc/periodic/daily/certbot
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
echo "Running daily Certbot renewal check"
exec /usr/bin/certbot renew --verbose --non-interactive --cert-name bookstack \
--webroot --webroot-path /app/www/public \
--user-agent-comment 'bookstack-certbot'
--user-agent-comment 'bookstack-certbot' \
--deploy-hook 's6-svc -h /run/service/svc-nginx'

0 comments on commit b688413

Please sign in to comment.