Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
bc0cf745
Commit
bc0cf745
authored
Nov 02, 2014
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make GitLab Shell upgrade a natural part of the upgrade process.
parent
7371c9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
doc/update/upgrader.md
doc/update/upgrader.md
+10
-7
No files found.
doc/update/upgrader.md
View file @
bc0cf745
...
@@ -43,28 +43,31 @@ Check if GitLab and its dependencies are configured correctly:
...
@@ -43,28 +43,31 @@ Check if GitLab and its dependencies are configured correctly:
If all items are green, then congratulations upgrade is complete!
If all items are green, then congratulations upgrade is complete!
## 5. Upgrade GitLab Shell
(if needed)
## 5. Upgrade GitLab Shell
If the
`gitlab:check`
task reports an outdated version of
`gitlab-shell`
you should upgrade it.
GitLab Shell might be outdated, running the commands below ensures you're using a compatible version:
Upgrade it by running the commands below after replacing 2.0.1 with the correct version number:
```
```
cd /home/git/gitlab-shell
cd /home/git/gitlab-shell
sudo -u git -H git fetch
sudo -u git -H git fetch
sudo -u git -H git checkout v
2.0.1
sudo -u git -H git checkout v
`cat /home/git/gitlab/GITLAB_SHELL_VERSION`
```
```
## One line upgrade command
## One line upgrade command
You've read through the entire guide and probably already did all the steps one by one.
You've read through the entire guide and probably already did all the steps one by one.
Here is a one line command with step 1 to
4
for the next time you upgrade:
Here is a one line command with step 1 to
5
for the next time you upgrade:
```
bash
```
bash
cd
/home/git/gitlab
;
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
;
\
cd
/home/git/gitlab
;
\
sudo
-u
git
-H
bundle
exec
rake gitlab:backup:create
RAILS_ENV
=
production
;
\
sudo
service gitlab stop
;
\
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
;
\
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
;
\
cd
/home/git/gitlab-shell
;
\
sudo
-u
git
-H
git fetch
;
\
sudo
-u
git
-H
git checkout v
`
cat
/home/git/gitlab/GITLAB_SHELL_VERSION
`
;
\
cd
/home/git/gitlab
;
\
sudo
service gitlab start
;
\
sudo
service gitlab start
;
\
sudo
service nginx restart
;
sudo
-u
git
-H
bundle
exec
rake gitlab:check
RAILS_ENV
=
production
sudo
service nginx restart
;
sudo
-u
git
-H
bundle
exec
rake gitlab:check
RAILS_ENV
=
production
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment