From d1648a6a2150c26c12a4f108040676a49627b8a0 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Wed, 23 Apr 2014 21:58:58 +0300 Subject: [PATCH] Ensure git user can create the database. Fix #175 --- doc/install/installation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index 579656eda2f..5924033c95e 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -145,6 +145,7 @@ GitLab Shell is an ssh access and repository management software developed speci # 5. Database We recommend using a PostgreSQL database. For MySQL check [MySQL setup guide](database_mysql.md). +NOTE: because we need to make use of extensions you need at least pgsql 9.1. # Install the database packages 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 sudo -u postgres psql -d template1 # Create a user for GitLab. - template1=# CREATE USER git; + template1=# CREATE USER git CREATEDB; # Create the GitLab production database & grant all privileges on database template1=# CREATE DATABASE gitlabhq_production OWNER git;