Files
sprpcb/cron/renew_certs.sh
2026-03-17 00:48:20 -04:00

8 lines
261 B
Bash

#!/bin/sh
cd /workdir
echo "Renewing Let's Encrypt Certificates... (`date`)"
docker compose run --rm --no-TTY --entrypoint certbot certbot renew --no-random-sleep-on-renew
echo "Reloading Nginx configuration"
docker compose exec --no-TTY nginx nginx -s reload