diff options
author | Richard van der Hoff <richard@matrix.org> | 2019-06-25 18:21:32 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2019-06-26 15:48:38 +0100 |
commit | 6347dc1beddf71411d0615f4e4101b814457a836 (patch) | |
tree | a368c4e821f0bd562a594e99efdb6a88f73e476e /docker/start.py | |
parent | changelog (diff) | |
download | synapse-6347dc1beddf71411d0615f4e4101b814457a836.tar.xz |
Add support for SYNAPSE_CONFIG_DIR
Diffstat (limited to 'docker/start.py')
-rwxr-xr-x | docker/start.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/start.py b/docker/start.py index ad968b2a67..99107a9d54 100755 --- a/docker/start.py +++ b/docker/start.py @@ -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", |