Commit a94b06e7b59af09d893966eee7af366bba29a6e4
Exists in
spb-stable
and in
2 other branches
Merge branch 'postgres_fix' into 'master'
Postgres fix. Closes #175
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
doc/install/installation.md
@@ -121,6 +121,7 @@ Create a `git` user for Gitlab: | @@ -121,6 +121,7 @@ Create a `git` user for Gitlab: | ||
121 | # 4. Database | 121 | # 4. Database |
122 | 122 | ||
123 | We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](database_mysql.md). | 123 | We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](database_mysql.md). |
124 | +NOTE: because we need to make use of extensions you need at least pgsql 9.1. | ||
124 | 125 | ||
125 | # Install the database packages | 126 | # Install the database packages |
126 | sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev | 127 | sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev |
@@ -129,7 +130,7 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da | @@ -129,7 +130,7 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da | ||
129 | sudo -u postgres psql -d template1 | 130 | sudo -u postgres psql -d template1 |
130 | 131 | ||
131 | # Create a user for GitLab. | 132 | # Create a user for GitLab. |
132 | - template1=# CREATE USER git; | 133 | + template1=# CREATE USER git CREATEDB; |
133 | 134 | ||
134 | # Create the GitLab production database & grant all privileges on database | 135 | # Create the GitLab production database & grant all privileges on database |
135 | template1=# CREATE DATABASE gitlabhq_production OWNER git; | 136 | template1=# CREATE DATABASE gitlabhq_production OWNER git; |