Commit e1ac3db92741907b5c085d3e236a02d953cfe0cc
Exists in
master
and in
4 other branches
Merge branch 'change-to-default-installer' of /home/git/repositories/gitlab/gitlabhq
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
doc/install/installation.md
| ... | ... | @@ -42,11 +42,13 @@ up-to-date and install it. |
| 42 | 42 | apt-get install sudo -y |
| 43 | 43 | |
| 44 | 44 | **Note:** |
| 45 | -Vim is an editor that is used here whenever there are files that need to be | |
| 46 | -edited by hand. But, you can use any editor you like instead. | |
| 45 | +During this installation some files will need to be edited manually. | |
| 46 | +If you are familiar with vim set it as default editor with the commands below. | |
| 47 | +If you are not familiar with vim please skip this and keep using the default editor. | |
| 47 | 48 | |
| 48 | - # Install vim | |
| 49 | + # Install vim and set as default editor | |
| 49 | 50 | sudo apt-get install -y vim |
| 51 | + sudo update-alternatives --set editor /usr/bin/vim.basic | |
| 50 | 52 | |
| 51 | 53 | Install the required packages: |
| 52 | 54 | |
| ... | ... | @@ -123,7 +125,7 @@ GitLab Shell is a ssh access and repository management software developed specia |
| 123 | 125 | |
| 124 | 126 | # Edit config and replace gitlab_url |
| 125 | 127 | # with something like 'http://domain.com/' |
| 126 | - sudo -u git -H vim config.yml | |
| 128 | + sudo -u git -H editor config.yml | |
| 127 | 129 | |
| 128 | 130 | # Do setup |
| 129 | 131 | sudo -u git -H ./bin/install |
| ... | ... | @@ -162,7 +164,7 @@ You can change `5-3-stable` to `master` if you want the *bleeding edge* version, |
| 162 | 164 | |
| 163 | 165 | # Make sure to change "localhost" to the fully-qualified domain name of your |
| 164 | 166 | # host serving GitLab where necessary |
| 165 | - sudo -u git -H vim config/gitlab.yml | |
| 167 | + sudo -u git -H editor config/gitlab.yml | |
| 166 | 168 | |
| 167 | 169 | # Make sure GitLab can write to the log/ and tmp/ directories |
| 168 | 170 | sudo chown -R git log/ |
| ... | ... | @@ -188,7 +190,7 @@ You can change `5-3-stable` to `master` if you want the *bleeding edge* version, |
| 188 | 190 | |
| 189 | 191 | # Enable cluster mode if you expect to have a high load instance |
| 190 | 192 | # Ex. change amount of workers to 3 for 2GB RAM server |
| 191 | - sudo -u git -H vim config/puma.rb | |
| 193 | + sudo -u git -H editor config/puma.rb | |
| 192 | 194 | |
| 193 | 195 | # Configure Git global settings for git user, useful when editing via web |
| 194 | 196 | # Edit user.email according to what is set in gitlab.yml |
| ... | ... | @@ -214,7 +216,7 @@ Make sure to edit both `gitlab.yml` and `puma.rb` to match your setup. |
| 214 | 216 | # Change 'root' to 'gitlab' |
| 215 | 217 | # Change 'secure password' with the value you have given to $password |
| 216 | 218 | # You can keep the double quotes around the password |
| 217 | - sudo -u git -H vim config/database.yml | |
| 219 | + sudo -u git -H editor config/database.yml | |
| 218 | 220 | |
| 219 | 221 | # Make config/database.yml readable to git only |
| 220 | 222 | sudo -u git -H chmod o-rwx config/database.yml |
| ... | ... | @@ -295,7 +297,7 @@ Make sure to edit the config file to match your setup: |
| 295 | 297 | |
| 296 | 298 | # Change YOUR_SERVER_FQDN to the fully-qualified |
| 297 | 299 | # domain name of your host serving GitLab. |
| 298 | - sudo vim /etc/nginx/sites-available/gitlab | |
| 300 | + sudo editor /etc/nginx/sites-available/gitlab | |
| 299 | 301 | |
| 300 | 302 | ## Restart |
| 301 | 303 | ... | ... |