Fix shenanigans with setup wizard

This commit is contained in:
Théophile Diot 2024-09-11 10:57:44 +02:00
parent 8000b93f3e
commit 29a2582f4b
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -640,9 +640,6 @@ def setup():
if request.form.get("auto_lets_encrypt", "no") == "yes":
config["AUTO_LETS_ENCRYPT"] = "yes"
else:
config["GENERATE_SELF_SIGNED_SSL"] = "yes"
config["SELF_SIGNED_SSL_SUBJ"] = f"/CN={request.form['server_name']}/"
if not config.get("MULTISITE", "no") == "yes":
app.config["CONFIG"].edit_global_conf({"MULTISITE": "yes"}, check_changes=False)