Commit c8460c4731fe73cf3ca4cb45d098f21636c71df3
1 parent
379299ad
Exists in
spb-stable
and in
2 other branches
Update the one-liner.
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
doc/update/upgrader.md
| @@ -56,6 +56,8 @@ Here is a one line command with step 1 to 4 for the next time you upgrade: | @@ -56,6 +56,8 @@ Here is a one line command with step 1 to 4 for the next time you upgrade: | ||
| 56 | 56 | ||
| 57 | ```bash | 57 | ```bash |
| 58 | cd /home/git/gitlab; sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \ | 58 | cd /home/git/gitlab; sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \ |
| 59 | - sudo service gitlab stop; sudo -u git -H ruby bin/upgrade.rb -y; sudo service gitlab start; \ | 59 | + sudo service gitlab stop; \ |
| 60 | + if [ -f bin/upgrade.rb ]; then sudo -u git -H ruby bin/upgrade.rb -y; else sudo -u git -H ruby script/upgrade.rb -y; fi; \ | ||
| 61 | + sudo service gitlab start; \ | ||
| 60 | sudo service nginx restart; sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production | 62 | sudo service nginx restart; sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production |
| 61 | ``` | 63 | ``` |