Private
Public Access
1
0
Files
websitebox/scripts/ssl-renew.sh
constantprojects a440026701 Initial commit: complete WebsiteBox project
Docker-based self-hosted WordPress deployment system with:
- Four-container stack (nginx, wordpress/php-fpm, mariadb, certbot)
- Automatic SSL via Let's Encrypt with self-signed fallback
- First-boot WordPress setup via WP-CLI (GeneratePress + child theme, plugins)
- Interactive setup wizard and one-line install script
- Backup, update, healthcheck, and SSL renewal scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:24:23 -07:00

18 lines
641 B
Bash
Executable File

#!/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"