mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:24:49 -04:00
Add support for SYNAPSE_CONFIG_DIR
This commit is contained in:
parent
a0f2921ccf
commit
6347dc1bed
2 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,7 @@ def run_generate_config(environ, ownership):
|
|||
if v not in environ:
|
||||
error("Environment variable '%s' is mandatory in `generate` mode." % (v,))
|
||||
|
||||
config_dir = environ.get("SYNAPSE_CONFIG_DIR", "/data")
|
||||
data_dir = environ.get("SYNAPSE_DATA_DIR", "/data")
|
||||
|
||||
# make sure that synapse has perms to write to the data dir.
|
||||
|
@ -131,6 +132,8 @@ def run_generate_config(environ, ownership):
|
|||
environ["SYNAPSE_REPORT_STATS"],
|
||||
"--config-path",
|
||||
environ["SYNAPSE_CONFIG_PATH"],
|
||||
"--config-directory",
|
||||
config_dir,
|
||||
"--data-directory",
|
||||
data_dir,
|
||||
"--generate-config",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue