Skip to content

Commit 5a240fb

Browse files
committed
Update the doc further
* made all the preformats to be bash * Capitalise the first words * Fixed a few typos
1 parent 301399f commit 5a240fb

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

misc/change-git-home-directory/README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ or you can run the following command
2020
groupmod -g 500 git
2121
```
2222

23-
Amended the `/etc/passwd` file to change the uid, gid and the home directory for git
23+
Amend the `/etc/passwd` file to change the uid, gid and the home directory for git
2424

2525
```bash
2626
git:x:500:500:GitLab,,,:/var/lib/git:/bin/bash
@@ -31,7 +31,7 @@ or you can run the following command
3131
usermod -d /var/lib/git -g 500 -u 500 git
3232
```
3333

34-
### 2. Move the git folder
34+
### 2. Copy the git folder
3535

3636
```bash
3737
cp -r /home/git /var/lib/
@@ -44,7 +44,8 @@ chown -R git:git /var/lib/git
4444
```
4545

4646
### 4. Update Gitlab config files
47-
update `~git/gitlab/config/gitlab.yml`, using the following command
47+
48+
Update `~git/gitlab/config/gitlab.yml`, using the following command
4849

4950
```bash
5051
sed -i -e 's/\/home/\/var\/lib/g' ~git/gitlab/config/gitlab.yml
@@ -123,7 +124,8 @@ You should see the following difference after running the command
123124
```
124125

125126
### 5. Update Gitlab shell config file
126-
update `~git/gitlab-shell/config.yml`, using the following command
127+
128+
Update `~git/gitlab-shell/config.yml`, using the following command
127129

128130
```bash
129131
sed -i -e 's/\/home/\/var\/lib/g' ~git/gitlab-shell/config.yml
@@ -159,7 +161,7 @@ sed -i -e 's/\/home/\/var\/lib/g' ~git/.ssh/authorized_keys
159161

160162
### 7. Update nginx config file
161163

162-
update `/etc/nginx/sites-enabled/gitlab`, using the following command
164+
Update `/etc/nginx/sites-enabled/gitlab`, using the following command
163165

164166
```bash
165167
sed -i -e 's/\/home/\/var\/lib/g' /etc/nginx/sites-enabled/gitlab
@@ -206,16 +208,22 @@ sudo service nginx restart
206208

207209
Check if GitLab and its environment are configured correctly:
208210

209-
cd ~git/gitlab
210-
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
211+
```bash
212+
cd ~git/gitlab
213+
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
214+
```
211215

212216
To make sure you didn't miss anything run a more thorough check with:
213217

214-
cd ~git/gitlab
215-
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
218+
```bash
219+
cd ~git/gitlab
220+
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
221+
```
216222

217223
### 14. Remove old home
218224

219225
Once you are happy that everything is now working in the new directory, you can remove the old `/home/git`
220226

221-
rm -rf /home/git
227+
```bash
228+
rm -rf /home/git
229+
```

0 commit comments

Comments
 (0)