diff options
author | kaiyou <pierre@jaury.eu> | 2018-02-08 19:50:04 +0100 |
---|---|---|
committer | kaiyou <pierre@jaury.eu> | 2018-02-08 19:50:04 +0100 |
commit | 084afbb6a06f2661bed503bf49b0291ce999c6c1 (patch) | |
tree | fe47147bdc86e6b2acf40549b2a1058a24de17e5 | |
parent | Add some documentation about high performance storage (diff) | |
download | synapse-084afbb6a06f2661bed503bf49b0291ce999c6c1.tar.xz |
Rename the permissions variable to avoid confusion
Diffstat (limited to '')
-rwxr-xr-x | contrib/docker/start.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/docker/start.py b/contrib/docker/start.py index 8ade0f227d..13a10a11bb 100755 --- a/contrib/docker/start.py +++ b/contrib/docker/start.py @@ -15,7 +15,7 @@ if "SYNAPSE_SERVER_NAME" not in environ: print("Environment variable SYNAPSE_SERVER_NAME is mandatory, exiting.") sys.exit(2) -permissions = "{}:{}".format(environ.get("UID", 991), environ.get("GID", 991)) +ownership = "{}:{}".format(environ.get("UID", 991), environ.get("GID", 991)) args = ["python", "-m", "synapse.app.homeserver", "--server-name", environ.get("SYNAPSE_SERVER_NAME"), "--report-stats", environ.get("SYNAPSE_REPORT_STATS", "no"), @@ -43,5 +43,5 @@ else: convert("/conf/log.config", "/compiled/%s.log.config" % environ.get("SYNAPSE_SERVER_NAME"), environ) # Generate missing keys and start synapse subprocess.check_output(args + ["--generate-keys"]) - subprocess.check_output(["chown", "-R", permissions, "/data"]) - os.execv("/sbin/su-exec", ["su-exec", permissions] + args) + subprocess.check_output(["chown", "-R", ownership, "/data"]) + os.execv("/sbin/su-exec", ["su-exec", ownership] + args) |