Fix spelling error and make sure you never log in as git user so you never have to logout to run sudo.
This commit is contained in:
parent
f01d482427
commit
8ccad7c3c7
2 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue