mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Add check for non-empty servers before setting SERVER_NAME in config
This commit is contained in:
parent
f093202a7b
commit
188f58b3ce
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ class Config:
|
|||
|
||||
servers.extend(filter(None, results))
|
||||
|
||||
conf["SERVER_NAME"] = " ".join(servers)
|
||||
if servers:
|
||||
conf["SERVER_NAME"] = " ".join(servers)
|
||||
conf["DATABASE_URI"] = self.__db.database_uri
|
||||
|
||||
return self.__db.save_config(conf, override_method, changed=check_changes)
|
||||
|
|
|
|||
Loading…
Reference in a new issue