README: use CREATE ROLE statement in postgresql setup instructions

This commit is contained in:
Sameer Naik 2014-04-16 10:16:43 +05:30
parent bcba7b438d
commit f71a8b565b

View File

@ -260,7 +260,7 @@ docker run --name=gitlab -d --link mysql:mysql \
The image also supports using an external PostgreSQL Server. This is also controlled via environment variables.
```sql
CREATE USER gitlab WITH PASSWORD 'password';
CREATE ROLE gitlab with LOGIN CREATEDB PASSWORD 'password';
CREATE DATABASE gitlabhq_production;
GRANT ALL PRIVILEGES ON DATABASE gitlabhq_production to gitlab;
```
@ -321,7 +321,7 @@ psql -U postgres -h ${POSTGRESQL_IP}
```
```sql
CREATE USER gitlab WITH PASSWORD 'password';
CREATE ROLE gitlab with LOGIN CREATEDB PASSWORD 'password';
CREATE DATABASE gitlabhq_production;
GRANT ALL PRIVILEGES ON DATABASE gitlabhq_production to gitlab;
```