#!/bin/bash set -eo pipefail # WebsiteBox SSL Renewal Helper # Manually triggers a certificate renewal attempt via the certbot container. # Automatic renewals are handled by the certbot container's built-in loop. # Use this script only if you need to force an immediate renewal. SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" PROJECT_DIR="$(dirname "$SCRIPT_DIR")" echo "Requesting certificate renewal..." docker compose -f "${PROJECT_DIR}/docker-compose.yml" exec certbot \ certbot renew --deploy-hook "touch /var/run/certbot-signal/reload" echo "Renewal attempt complete. Check logs for details:" echo " docker compose logs certbot"