summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/docker/start.py6
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)