summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorBruno Pagani <bruno.n.pagani@gmail.com>2018-06-04 22:41:52 +0000
committerGitHub <noreply@github.com>2018-06-04 22:41:52 +0000
commitb50f18171dbd3181225cb5fc8c0dfca7efbef901 (patch)
treeff74874421f3b53955e5c022d7658af5a36fd648 /docs
parentMerge pull request #3290 from rubo77/patch-7 (diff)
downloadsynapse-b50f18171dbd3181225cb5fc8c0dfca7efbef901.tar.xz
doc/postgres.rest: fix displaying of the last command block
Also indent all of them with 4 spaces.
Diffstat (limited to 'docs')
-rw-r--r--docs/postgres.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/postgres.rst b/docs/postgres.rst
index 296293e859..2377542296 100644
--- a/docs/postgres.rst
+++ b/docs/postgres.rst
@@ -9,19 +9,19 @@ Set up database
 Assuming your PostgreSQL database user is called ``postgres``, create a user
 ``synapse_user`` with::
 
- su - postgres
- createuser --pwprompt synapse_user
+   su - postgres
+   createuser --pwprompt synapse_user
 
 The PostgreSQL database used *must* have the correct encoding set, otherwise it
 would not be able to store UTF8 strings. To create a database with the correct
 encoding use, e.g.::
 
- CREATE DATABASE synapse
-  ENCODING 'UTF8'
-  LC_COLLATE='C'
-  LC_CTYPE='C'
-  template=template0
-  OWNER synapse_user;
+   CREATE DATABASE synapse
+    ENCODING 'UTF8'
+    LC_COLLATE='C'
+    LC_CTYPE='C'
+    template=template0
+    OWNER synapse_user;
 
 This would create an appropriate database named ``synapse`` owned by the
 ``synapse_user`` user (which must already exist).
@@ -126,7 +126,7 @@ run::
         --postgres-config homeserver-postgres.yaml
 
 Once that has completed, change the synapse config to point at the PostgreSQL
-database configuration file ``homeserver-postgres.yaml``:
+database configuration file ``homeserver-postgres.yaml``::
 
     ./synctl stop
     mv homeserver.yaml homeserver-old-sqlite.yaml