mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:36:06 -04:00
Allow generate-config to run against an existing config file to generate default keys
This commit is contained in:
parent
50c87b8eed
commit
46a65c282f
3 changed files with 26 additions and 14 deletions
|
@ -56,6 +56,7 @@ class DatabaseConfig(Config):
|
|||
args:
|
||||
# Path to the database
|
||||
database: "%(database_path)s"
|
||||
|
||||
# Number of events to cache in memory.
|
||||
event_cache_size: "10K"
|
||||
""" % locals()
|
||||
|
@ -68,7 +69,7 @@ class DatabaseConfig(Config):
|
|||
database_path = self.abspath(database_path)
|
||||
if self.database_config.get("name", None) == "sqlite3":
|
||||
if database_path is not None:
|
||||
self.database_config["database"] = database_path
|
||||
self.database_config["args"]["database"] = database_path
|
||||
|
||||
def add_arguments(self, parser):
|
||||
db_group = parser.add_argument_group("database")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue