summaryrefslogtreecommitdiff
path: root/doc/update/upgrader.md
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-02 09:48:55 +0200
committerMarin Jankovski <marin@gitlab.com>2014-06-02 09:48:55 +0200
commitc8460c4731fe73cf3ca4cb45d098f21636c71df3 (patch)
treeb3dac8f14a557c27ede22dac05ab6126345e86d2 /doc/update/upgrader.md
parent379299ad18c28bb8b6f0ea52c5086193bb1d0e96 (diff)
downloadgitlab-ce-c8460c4731fe73cf3ca4cb45d098f21636c71df3.tar.gz
Update the one-liner.
Diffstat (limited to 'doc/update/upgrader.md')
-rw-r--r--doc/update/upgrader.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/update/upgrader.md b/doc/update/upgrader.md
index c8cfd4f92b1..19faca4ec4e 100644
--- a/doc/update/upgrader.md
+++ b/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:
```bash
cd /home/git/gitlab; sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production; \
- sudo service gitlab stop; sudo -u git -H ruby bin/upgrade.rb -y; sudo service gitlab start; \
+ sudo service gitlab stop; \
+ 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; \
+ sudo service gitlab start; \
sudo service nginx restart; sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
```