working on fixing addons

This commit is contained in:
n0mad1k
2025-04-12 22:17:44 -04:00
parent bd0dcf693c
commit d936575312
4 changed files with 191 additions and 2 deletions
+6 -2
View File
@@ -287,8 +287,12 @@ def interactive_setup():
# Domain configuration
default_domain = vars_data.get('domain', 'example.com')
config['domain'] = input(f"\nDomain name [default: {default_domain}]: ") or default_domain
default_email = vars_data.get('letsencrypt_email', f"admin@{config['domain']}")
# Always use the most up-to-date domain for the email default
default_email = vars_data.get('letsencrypt_email')
if not default_email or "example.com" in default_email:
default_email = f"admin@{config['domain']}"
config['letsencrypt_email'] = input(f"Email for Let's Encrypt [default: {default_email}]: ") or default_email
# Security options