From 1d15586fee7b3bcb773db702e571b2453d107aca Mon Sep 17 00:00:00 2001 From: Mike TUMS Date: Tue, 30 Oct 2012 15:58:10 +0400 Subject: [PATCH] Update doc/install/databases.md Update docs for PostgreSQL installation --- doc/install/databases.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/install/databases.md b/doc/install/databases.md index fd87eee41..b7beff26a 100644 --- a/doc/install/databases.md +++ b/doc/install/databases.md @@ -26,7 +26,7 @@ GitLab use mysql as default database but you are free to use PostgreSQL or SQLit ## PostgreSQL - sudo apt-get install -y postgresql-9.2 postgresql-server-dev-9.2 + sudo apt-get install -y postgresql-9.1 postgresql-server-dev-9.1 # Connect to database server sudo -u postgres psql -d template1 @@ -34,18 +34,14 @@ GitLab use mysql as default database but you are free to use PostgreSQL or SQLit # Add a user called gitlab. Change $password to a real password template1=# CREATE USER gitlab WITH PASSWORD '$password'; - # Create the GitLab production database - template1=# CREATE DATABASE IF NOT EXISTS gitlabhq_production; - - # Grant all privileges on database - template1=# GRANT ALL PRIVILEGES ON DATABASE gitlabhq_production to gitlab; + # Create the GitLab production database & grant all privileges on database + template1=# CREATE DATABASE gitlabhq_production OWNER gitlab; # Quit from PostgreSQL server template1=# \q # Try connect to new database - $ su - gitlab - $ psql -d gitlabhq_production -U gitlab + sudo -u gitlab psql -d gitlabhq_production -- 2.11.0