Commit 58b46cbcf606882b5cd9ee581c3fd95871e0d766
1 parent
970d86b7
Exists in
master
and in
4 other branches
Add -H to sudo commands in 4.1-to-4.2.md
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
doc/update/4.1-to-4.2.md
| ... | ... | @@ -12,15 +12,15 @@ |
| 12 | 12 | cd /home/gitlab/gitlab/ |
| 13 | 13 | |
| 14 | 14 | # Get latest code |
| 15 | -sudo -u gitlab git fetch | |
| 15 | +sudo -u gitlab -H git fetch | |
| 16 | 16 | |
| 17 | -sudo -u gitlab git checkout 4-2-stable | |
| 17 | +sudo -u gitlab -H git checkout 4-2-stable | |
| 18 | 18 | |
| 19 | 19 | # Install libs |
| 20 | -sudo -u gitlab bundle install --without development test postgres --deployment | |
| 20 | +sudo -u gitlab -H bundle install --without development test postgres --deployment | |
| 21 | 21 | |
| 22 | 22 | # update db |
| 23 | -sudo -u gitlab bundle exec rake db:migrate RAILS_ENV=production | |
| 23 | +sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production | |
| 24 | 24 | |
| 25 | 25 | ``` |
| 26 | 26 | ... | ... |