From 8ccad7c3c7f93b4b4b217ad8bd356083632e8a05 Mon Sep 17 00:00:00 2001 From: Sytse Sijbrandij Date: Sun, 16 Jun 2013 22:06:33 +0200 Subject: [PATCH] Fix spelling error and make sure you never log in as git user so you never have to logout to run sudo. --- doc/install/databases.md | 3 --- doc/install/installation.md | 15 ++++++--------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/doc/install/databases.md b/doc/install/databases.md index 4fc8491525f..5ec1d0c6524 100644 --- a/doc/install/databases.md +++ b/doc/install/databases.md @@ -8,9 +8,6 @@ GitLab supports the following databases: ## MySQL - # If you are the git user log out since it doesn't have sudo rights - exit - # Install the database packages sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev diff --git a/doc/install/installation.md b/doc/install/installation.md index 0fab6bf3d17..c94bfe1b76b 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -108,28 +108,25 @@ Create a `git` user for Gitlab: GitLab Shell is a ssh access and repository management software developed specially for GitLab. - # Login as git - sudo su git - # Go to home directory cd /home/git # Clone gitlab shell - git clone https://github.com/gitlabhq/gitlab-shell.git + sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git cd gitlab-shell # switch to right version - git checkout v1.4.0 + sudo -u git -H git checkout v1.4.0 - cp config.yml.example config.yml + sudo -u git -H cp config.yml.example config.yml # Edit config and replace gitlab_url # with something like 'http://domain.com/' - vim config.yml + sudo -u git -H vim config.yml # Do setup - ./bin/install + sudo -u git -H ./bin/install # 5. Database @@ -213,7 +210,7 @@ Make sure to edit both `gitlab.yml` and `puma.rb` to match your setup. # 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 than please do as follows: + # If you followed the database guide then please do as follows: # Change 'root' to 'gitlab' # Change 'secure password' with the value you have given to $password # You can keep the double quotes around the password