diff --git a/config/database.yml.postgresql b/config/database.yml.postgresql index 4b74f3348f8a3a54baeb9df9c53d34926c3e7a9a..66960551cfde14278d8f5e166ed9d0e3ba7431ab 100644 --- a/config/database.yml.postgresql +++ b/config/database.yml.postgresql @@ -6,8 +6,8 @@ production: encoding: unicode database: gitlabhq_production pool: 10 - username: git - password: + # username: git + # password: # host: localhost # port: 5432 # socket: /tmp/postgresql.sock diff --git a/doc/install/databases.md b/doc/install/databases.md index 6477e1c967c1531485e94fa3fe88f2e14122ddf8..be7bc0aad2ec471782a096548ad4b5f87aaca1ae 100644 --- a/doc/install/databases.md +++ b/doc/install/databases.md @@ -58,7 +58,7 @@ GitLab supports the following databases: sudo -u postgres psql -d template1 # Create a user for GitLab. (change $password to a real password) - template1=# CREATE USER git WITH PASSWORD '$password'; + template1=# CREATE USER git; # Create the GitLab production database & grant all privileges on database template1=# CREATE DATABASE gitlabhq_production OWNER git; diff --git a/doc/install/installation.md b/doc/install/installation.md index 91bf7c265a531263bbffa1652db564e8ecf91208..933799776bd12aa0ceea781d26b0fa9a641e86f2 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -216,17 +216,18 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup. # Mysql sudo -u git cp config/database.yml.mysql config/database.yml - or - - # PostgreSQL - sudo -u git cp config/database.yml.postgresql config/database.yml - # Make sure to update username/password in config/database.yml. # You only need to adapt the production settings (first part). # If you followed the database guide then please do as follows: # Change 'secure password' with the value you have given to $password # You can keep the double quotes around the password sudo -u git -H editor config/database.yml + + or + + # PostgreSQL + sudo -u git cp config/database.yml.postgresql config/database.yml + # Make config/database.yml readable to git only sudo -u git -H chmod o-rwx config/database.yml