Commit 83e9825c972796d90e678bb8ed3ddc04ee5b02b8
1 parent
b658489f
Exists in
master
and in
4 other branches
Fix sudo commands in update guides
Showing
6 changed files
with
11 additions
and
11 deletions
Show diff stats
doc/update/5.1-to-5.2.md
... | ... | @@ -7,7 +7,7 @@ It's useful to make a backup just in case things go south: |
7 | 7 | |
8 | 8 | ```bash |
9 | 9 | cd /home/git/gitlab |
10 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create | |
10 | +sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
11 | 11 | ``` |
12 | 12 | |
13 | 13 | ### 1. Stop server |
... | ... | @@ -95,5 +95,5 @@ Follow the [`upgrade guide from 5.0 to 5.1`](5.0-to-5.1.md), except for the data |
95 | 95 | |
96 | 96 | ```bash |
97 | 97 | cd /home/git/gitlab |
98 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore | |
98 | +sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production | |
99 | 99 | ``` | ... | ... |
doc/update/5.2-to-5.3.md
... | ... | @@ -7,7 +7,7 @@ It's useful to make a backup just in case things go south: |
7 | 7 | |
8 | 8 | ```bash |
9 | 9 | cd /home/git/gitlab |
10 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create | |
10 | +sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
11 | 11 | ``` |
12 | 12 | |
13 | 13 | ### 1. Stop server |
... | ... | @@ -78,5 +78,5 @@ Follow the [`upgrade guide from 5.1 to 5.2`](5.1-to-5.2.md), except for the data |
78 | 78 | |
79 | 79 | ```bash |
80 | 80 | cd /home/git/gitlab |
81 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore | |
81 | +sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production | |
82 | 82 | ``` | ... | ... |
doc/update/5.3-to-5.4.md
... | ... | @@ -7,7 +7,7 @@ It's useful to make a backup just in case things go south: |
7 | 7 | |
8 | 8 | ```bash |
9 | 9 | cd /home/git/gitlab |
10 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create | |
10 | +sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
11 | 11 | ``` |
12 | 12 | |
13 | 13 | ### 1. Stop server |
... | ... | @@ -86,5 +86,5 @@ Follow the [`upgrade guide from 5.2 to 5.3`](5.2-to-5.3.md), except for the data |
86 | 86 | |
87 | 87 | ```bash |
88 | 88 | cd /home/git/gitlab |
89 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore | |
89 | +sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production | |
90 | 90 | ``` | ... | ... |
doc/update/5.4-to-6.0.md
... | ... | @@ -24,7 +24,7 @@ It's useful to make a backup just in case things go south: |
24 | 24 | |
25 | 25 | ```bash |
26 | 26 | cd /home/git/gitlab |
27 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create | |
27 | +sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
28 | 28 | ``` |
29 | 29 | |
30 | 30 | ### 1. Stop server | ... | ... |
doc/update/6.0-to-6.1.md
... | ... | @@ -16,7 +16,7 @@ It's useful to make a backup just in case things go south: |
16 | 16 | |
17 | 17 | ```bash |
18 | 18 | cd /home/git/gitlab |
19 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create | |
19 | +sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
20 | 20 | ``` |
21 | 21 | |
22 | 22 | ### 1. Stop server |
... | ... | @@ -99,5 +99,5 @@ Follow the [`upgrade guide from 5.4 to 6.0`](5.4-to-6.0.md), except for the data |
99 | 99 | |
100 | 100 | ```bash |
101 | 101 | cd /home/git/gitlab |
102 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore | |
102 | +sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production | |
103 | 103 | ``` | ... | ... |
doc/update/6.1-to-6.2.md
... | ... | @@ -9,7 +9,7 @@ It's useful to make a backup just in case things go south: |
9 | 9 | |
10 | 10 | ```bash |
11 | 11 | cd /home/git/gitlab |
12 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:create | |
12 | +sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | |
13 | 13 | ``` |
14 | 14 | |
15 | 15 | ### 1. Stop server |
... | ... | @@ -96,5 +96,5 @@ Follow the [`upgrade guide from 6.0 to 6.1`](6.0-to-6.1.md), except for the data |
96 | 96 | |
97 | 97 | ```bash |
98 | 98 | cd /home/git/gitlab |
99 | -sudo -u git -H RAILS_ENV=production bundle exec rake gitlab:backup:restore | |
99 | +sudo -u git -H bundle exec rake gitlab:backup:restore RAILS_ENV=production | |
100 | 100 | ``` | ... | ... |