mirror of
https://github.com/logos-messaging/logos-messaging-nim-compose.git
synced 2026-04-03 20:43:08 +00:00
run_certbot.sh does nothing if DOMAIN not set
This commit is contained in:
parent
d26ba09d04
commit
9739695db9
@ -1,10 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ -z "$DOMAIN" ]; then
|
||||
echo "DOMAIN not set, skipping certbot"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# -------------------------------
|
||||
# Configuration
|
||||
# -------------------------------
|
||||
DOMAIN="${DOMAIN:-changeme.xyz}" # Replace or set via env
|
||||
EMAIL="${EMAIL:-admin@${DOMAIN}}" # Certbot email
|
||||
WEBROOT="${WEBROOT:-/var/www/certbot}" # Path served by HTTP for ACME
|
||||
SLEEP_INTERVAL="${SLEEP_INTERVAL:-12h}" # Renewal check interval
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user