From a4d79ef7737ea5469f4f18b46e6b187b9c7b1720 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 23 Feb 2024 16:00:40 +1100 Subject: [PATCH] fix: Email again --- sites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites.py b/sites.py index c130b70..09b44cc 100644 --- a/sites.py +++ b/sites.py @@ -267,10 +267,10 @@ def write_nginx_conf(site): for alt in site['alt_domains']: if is_icann(alt): icann_domains.append(alt) - + email = f'admin@{icann_domains[0]}' icann_domains = " -d ".join(icann_domains) icann_domains = f'-d {icann_domains}' - os.system(f'certbot --nginx {icann_domains} --non-interactive --agree-tos --email admin@{icann_domains[0]} --redirect') + os.system(f'certbot --nginx {icann_domains} --non-interactive --agree-tos --email {email} --redirect') return True