change variable names

This commit is contained in:
2025-08-13 13:54:43 +03:00
parent 5e98593f0a
commit aa341c0d62
4 changed files with 9 additions and 9 deletions

View File

@@ -11,20 +11,20 @@ if [ ! -f /etc/certificates/site.pem ]; then
fi
# check e-mail for letsencrypt notifications
if [ -n "$EMAIL" ]; then
CERTBOT_OPTS="--email $EMAIL"
if [ -n "$CERTBOT_EMAIL" ]; then
CERTBOT_OPTS="--email $CERTBOT_EMAIL"
else
CERTBOT_OPTS="--register-unsafely-without-email"
fi
if [ -n "$DOMAIN" ]; then
if [ -n "$CERTBOT_DOMAIN" ]; then
# Request certificate
certbot certonly --standalone \
--non-interactive --agree-tos --http-01-port=380 \
"$CERTBOT_OPTS" \
--cert-name "$DOMAIN" \
-d "$DOMAIN"
--cert-name "$CERTBOT_DOMAIN" \
-d "$CERTBOT_DOMAIN"
# Concatenate certificates
. $(dirname $0)/2-concatenate-cert.sh