mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Fix UI using the wrong database when generating the new config
This commit is contained in:
parent
57374ecc2f
commit
33e200f652
1 changed files with 1 additions and 0 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue