Commit d1648a6a2150c26c12a4f108040676a49627b8a0

Authored by Achilleas Pipinellis
1 parent bf855d19

Ensure git user can create the database. Fix #175

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
doc/install/installation.md
@@ -145,6 +145,7 @@ GitLab Shell is an ssh access and repository management software developed speci @@ -145,6 +145,7 @@ GitLab Shell is an ssh access and repository management software developed speci
145 # 5. Database 145 # 5. Database
146 146
147 We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](database_mysql.md). 147 We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](database_mysql.md).
  148 +NOTE: because we need to make use of extensions you need at least pgsql 9.1.
148 149
149 # Install the database packages 150 # Install the database packages
150 sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev 151 sudo apt-get install -y postgresql-9.1 postgresql-client libpq-dev
@@ -153,7 +154,7 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da @@ -153,7 +154,7 @@ We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](da
153 sudo -u postgres psql -d template1 154 sudo -u postgres psql -d template1
154 155
155 # Create a user for GitLab. 156 # Create a user for GitLab.
156 - template1=# CREATE USER git; 157 + template1=# CREATE USER git CREATEDB;
157 158
158 # Create the GitLab production database & grant all privileges on database 159 # Create the GitLab production database & grant all privileges on database
159 template1=# CREATE DATABASE gitlabhq_production OWNER git; 160 template1=# CREATE DATABASE gitlabhq_production OWNER git;