Fix UI using the wrong database when generating the new config

This commit is contained in:
Théophile Diot 2023-09-22 13:36:24 +01:00
parent 57374ecc2f
commit 33e200f652
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -55,6 +55,7 @@ class Config:
servers.append(server_name)
conf["SERVER_NAME"] = " ".join(servers)
conf["DATABASE_URI"] = self.__db.database_uri
env_file = Path(sep, "tmp", f"{uuid4()}.env")
env_file.write_text(
"\n".join(f"{k}={conf[k]}" for k in sorted(conf)),