Skip to content

Commit a474bb1

Browse files
committed
Minor fixes
1 parent 9b750ab commit a474bb1

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

install/centos/README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ If you can't see it listed, use the folowing command to enable it:
107107

108108
### Install the required tools for GitLab
109109

110-
::bash
111110
su -
112111
yum -y update
113112
yum -y groupinstall 'Development Tools'
@@ -130,7 +129,6 @@ GitLab will only work correctly with git version 1.8.x or newer. The problem is
130129
that the available rpms for CentOS stop at git 1.7.1 which is too old for GitLab.
131130
In order to update, you have to build git from source as it is not yet in any repository:
132131

133-
::bash
134132
su -
135133
cd /tmp
136134
yum -y install git perl-ExtUtils-MakeMaker
@@ -154,7 +152,7 @@ installed with:
154152
### Configure redis
155153
Make sure redis is started on boot:
156154

157-
::bash
155+
158156
sudo chkconfig redis on
159157

160158
### Configure sendmail
@@ -239,7 +237,7 @@ Now we want all logging of the system to be forwarded to a central email address
239237

240238
----------
241239

242-
# 4. GitLab shell
240+
## 4. GitLab shell
243241

244242
GitLab Shell is a ssh access and repository management software developed specially for GitLab.
245243

@@ -269,7 +267,6 @@ cp config.yml.example config.yml
269267

270268
Install `mysql` and enable the `mysqld` service to start on boot:
271269

272-
::bash
273270
su -
274271
yum install -y mysql-server mysql-devel
275272
chkconfig mysqld on
@@ -307,6 +304,7 @@ Try connecting to the new database with the new user:
307304
## 6. GitLab
308305

309306
We'll install GitLab into home directory of the user `git`:
307+
310308
su -
311309
su - git
312310

@@ -331,8 +329,7 @@ do so with caution!
331329
# Copy the example GitLab config
332330
cp config/gitlab.yml.example config/gitlab.yml
333331
334-
# Make sure to change "localhost" to the fully-qualified domain name of your
335-
# host serving GitLab where necessary
332+
# Replace your_domain_name with the fully-qualified domain name of your host serving GitLab
336333
sed -i 's|localhost|your_domain_name|g' config/gitlab.yml
337334
338335
# Change git's path to point to /usr/local/bin/git
@@ -378,11 +375,12 @@ git config --global core.autocrlf input
378375
# MySQL
379376
cp config/database.yml{.mysql,}
380377

381-
Make sure to update username/password in `config/database.yml`.
382-
You only need to adapt the production settings (first part).
378+
Make sure to update username/password in `config/database.yml`. You only need to adapt the production settings (first part).
379+
383380
If you followed the database guide then please do as follows:
384-
Change `root` to `gitlab`.
385-
Change `secure password` with the value you have given to supersecret.
381+
* Change `root` to `gitlab`.
382+
* Change `secure password` with the value you have given to supersecret.
383+
386384
You can keep the double quotes around the password.
387385

388386
editor config/database.yml
@@ -416,7 +414,7 @@ When done you see 'Administrator account created:'
416414
Download the init script (will be /etc/init.d/gitlab):
417415

418416
su -
419-
wget -O /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init/sysvinit/centos/gitlab-centos
417+
wget -O /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init/sysvinit/centos/gitlab-unicorn
420418
chmod +x /etc/init.d/gitlab
421419
chkconfig --add gitlab
422420

@@ -472,23 +470,26 @@ Add `nginx` user to `git` group.
472470
Finally start nginx with:
473471

474472
service nginx start
475-
473+
476474
### Apache
477475

478476
We will configure apache with module `mod_proxy` which is loaded by default when
479477
installing apache:
478+
480479
```
481480
su -
482481
yum -y install httpd mod_ssl
483482
chkconfig httpd on
484483
wget -O /etc/httpd/conf.d/gitlab.conf https://raw.github.com/gitlabhq/gitlab-recipes/master/web-server/apache/gitlab.conf
485484
```
485+
486486
Open `/etc/httpd/conf.d/gitlab.conf` with your editor and replace `git.example.org` with your FQDN.
487487

488488
Add `LoadModule ssl_module /etc/httpd/modules/mod_ssl.so` in `/etc/httpd/conf/httpd.conf`
489489

490490
If you want to run other websites on the same system, you'll need to add in `/etc/httpd/conf/httpd.conf`:
491491
```
492+
492493
NameVirtualHost *:80
493494
<IfModule mod_ssl.c>
494495
# If you add NameVirtualHost *:443 here, you will also have to change

0 commit comments

Comments
 (0)