diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-11-26 10:53:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 10:53:48 +0000 |
commit | 4c1b799e1b9f8e04f6cd86a0977e28685ac20aea (patch) | |
tree | fcaea2671bf38721520191c13bb37adf18ef84c5 /docker/start.py | |
parent | Format changelog (diff) | |
parent | Make sure that we close cursors before returning from a query (#6408) (diff) | |
download | synapse-4c1b799e1b9f8e04f6cd86a0977e28685ac20aea.tar.xz |
Merge branch 'develop' into babolivier/context_filters
Diffstat (limited to 'docker/start.py')
-rwxr-xr-x | docker/start.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/start.py b/docker/start.py index 6e1cb807a1..97fd247f8f 100755 --- a/docker/start.py +++ b/docker/start.py @@ -169,11 +169,11 @@ def run_generate_config(environ, ownership): # log("running %s" % (args, )) if ownership is not None: - args = ["su-exec", ownership] + args - os.execv("/sbin/su-exec", args) - # make sure that synapse has perms to write to the data dir. subprocess.check_output(["chown", ownership, data_dir]) + + args = ["su-exec", ownership] + args + os.execv("/sbin/su-exec", args) else: os.execv("/usr/local/bin/python", args) |