Commit b0439a78029df19b2f31c5a8c6c748bb356dd98a

Authored by Dmitriy Zaporozhets
2 parents 0cdb15b0 a3731cf3

Merge branch 'pg_installation' of /home/git/repositories/gitlab/gitlabhq

config/database.yml.mysql
@@ -7,7 +7,7 @@ production: @@ -7,7 +7,7 @@ production:
7 reconnect: false 7 reconnect: false
8 database: gitlabhq_production 8 database: gitlabhq_production
9 pool: 10 9 pool: 10
10 - username: root 10 + username: gitlab
11 password: "secure password" 11 password: "secure password"
12 # host: localhost 12 # host: localhost
13 # socket: /tmp/mysql.sock 13 # socket: /tmp/mysql.sock
config/database.yml.postgresql
@@ -6,8 +6,8 @@ production: @@ -6,8 +6,8 @@ production:
6 encoding: unicode 6 encoding: unicode
7 database: gitlabhq_production 7 database: gitlabhq_production
8 pool: 10 8 pool: 10
9 - username: git  
10 - password: 9 + # username: git
  10 + # password:
11 # host: localhost 11 # host: localhost
12 # port: 5432 12 # port: 5432
13 # socket: /tmp/postgresql.sock 13 # socket: /tmp/postgresql.sock
doc/install/databases.md
@@ -58,7 +58,7 @@ GitLab supports the following databases: @@ -58,7 +58,7 @@ GitLab supports the following databases:
58 sudo -u postgres psql -d template1 58 sudo -u postgres psql -d template1
59 59
60 # Create a user for GitLab. (change $password to a real password) 60 # Create a user for GitLab. (change $password to a real password)
61 - template1=# CREATE USER git WITH PASSWORD '$password'; 61 + template1=# CREATE USER git;
62 62
63 # Create the GitLab production database & grant all privileges on database 63 # Create the GitLab production database & grant all privileges on database
64 template1=# CREATE DATABASE gitlabhq_production OWNER git; 64 template1=# CREATE DATABASE gitlabhq_production OWNER git;
doc/install/installation.md
@@ -216,18 +216,18 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup. @@ -216,18 +216,18 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
216 # Mysql 216 # Mysql
217 sudo -u git cp config/database.yml.mysql config/database.yml 217 sudo -u git cp config/database.yml.mysql config/database.yml
218 218
219 - or  
220 -  
221 - # PostgreSQL  
222 - sudo -u git cp config/database.yml.postgresql config/database.yml  
223 -  
224 # Make sure to update username/password in config/database.yml. 219 # Make sure to update username/password in config/database.yml.
225 # You only need to adapt the production settings (first part). 220 # You only need to adapt the production settings (first part).
226 # If you followed the database guide then please do as follows: 221 # If you followed the database guide then please do as follows:
227 - # Change 'root' to 'gitlab'  
228 # Change 'secure password' with the value you have given to $password 222 # Change 'secure password' with the value you have given to $password
229 # You can keep the double quotes around the password 223 # You can keep the double quotes around the password
230 sudo -u git -H editor config/database.yml 224 sudo -u git -H editor config/database.yml
  225 +
  226 + or
  227 +
  228 + # PostgreSQL
  229 + sudo -u git cp config/database.yml.postgresql config/database.yml
  230 +
231 231
232 # Make config/database.yml readable to git only 232 # Make config/database.yml readable to git only
233 sudo -u git -H chmod o-rwx config/database.yml 233 sudo -u git -H chmod o-rwx config/database.yml