Commit 8ccad7c3c7f93b4b4b217ad8bd356083632e8a05
1 parent
f01d4824
Exists in
master
and in
4 other branches
Fix spelling error and make sure you never log in as git user so you never have …
…to logout to run sudo.
Showing
2 changed files
with
6 additions
and
12 deletions
Show diff stats
doc/install/databases.md
... | ... | @@ -8,9 +8,6 @@ GitLab supports the following databases: |
8 | 8 | |
9 | 9 | ## MySQL |
10 | 10 | |
11 | - # If you are the git user log out since it doesn't have sudo rights | |
12 | - exit | |
13 | - | |
14 | 11 | # Install the database packages |
15 | 12 | sudo apt-get install -y mysql-server mysql-client libmysqlclient-dev |
16 | 13 | ... | ... |
doc/install/installation.md
... | ... | @@ -108,28 +108,25 @@ Create a `git` user for Gitlab: |
108 | 108 | |
109 | 109 | GitLab Shell is a ssh access and repository management software developed specially for GitLab. |
110 | 110 | |
111 | - # Login as git | |
112 | - sudo su git | |
113 | - | |
114 | 111 | # Go to home directory |
115 | 112 | cd /home/git |
116 | 113 | |
117 | 114 | # Clone gitlab shell |
118 | - git clone https://github.com/gitlabhq/gitlab-shell.git | |
115 | + sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git | |
119 | 116 | |
120 | 117 | cd gitlab-shell |
121 | 118 | |
122 | 119 | # switch to right version |
123 | - git checkout v1.4.0 | |
120 | + sudo -u git -H git checkout v1.4.0 | |
124 | 121 | |
125 | - cp config.yml.example config.yml | |
122 | + sudo -u git -H cp config.yml.example config.yml | |
126 | 123 | |
127 | 124 | # Edit config and replace gitlab_url |
128 | 125 | # with something like 'http://domain.com/' |
129 | - vim config.yml | |
126 | + sudo -u git -H vim config.yml | |
130 | 127 | |
131 | 128 | # Do setup |
132 | - ./bin/install | |
129 | + sudo -u git -H ./bin/install | |
133 | 130 | |
134 | 131 | |
135 | 132 | # 5. Database |
... | ... | @@ -213,7 +210,7 @@ Make sure to edit both `gitlab.yml` and `puma.rb` to match your setup. |
213 | 210 | |
214 | 211 | # Make sure to update username/password in config/database.yml. |
215 | 212 | # You only need to adapt the production settings (first part). |
216 | - # If you followed the database guide than please do as follows: | |
213 | + # If you followed the database guide then please do as follows: | |
217 | 214 | # Change 'root' to 'gitlab' |
218 | 215 | # Change 'secure password' with the value you have given to $password |
219 | 216 | # You can keep the double quotes around the password | ... | ... |