diff --git a/doc/update.md b/doc/update.md index f4b0607..5771ffd 100644 --- a/doc/update.md +++ b/doc/update.md @@ -29,7 +29,36 @@ sudo gitlab-ctl start Done! -### Reverting to GitLab 6.6.x +## Updating from GitLab 6.6.0.pre1 to 6.6.4 + +First, download the latest package from https://www.gitlab.com/downloads/ to your GitLab server. + +```shell +# Stop unicorn and sidekiq so we can do database migrations +sudo gitlab-ctl stop unicorn +sudo gitlab-ctl stop sidekiq + +# One-time migration because we changed some directories since 6.6.0.pre1 +sudo mkdir -p /var/opt/gitlab/git-data +sudo mv /var/opt/gitlab/{repositories,gitlab-satellites} /var/opt/gitlab/git-data/ +sudo mv /var/opt/gitlab/uploads /var/opt/gitlab/gitlab-rails/ + +# Install the latest package +# Ubuntu: +sudo dpkg -i gitlab_6.6.4-omnibus.xxx.deb +# CentOS: +sudo rpm -Uvh gitlab-6.6.4_xxx.rpm + +# Reconfigure GitLab (includes database migrations) +sudo gitlab-ctl reconfigure + +# Start unicorn and sidekiq +sudo gitlab-ctl start +``` + +Done! + +## sReverting to GitLab 6.6.x First download a GitLab 6.6.x [CE](https://www.gitlab.com/downloads/archives/) or [EE (subscribers only)](https://gitlab.com/subscribers/gitlab-ee/blob/master/doc/install/packages.md) @@ -63,32 +92,3 @@ sudo gitlab-rake gitlab:backup:restore BACKUP=12345 # where 12345 is your backup # Start GitLab sudo gitlab-ctl start ``` - -## Updating from GitLab 6.6.0.pre1 to 6.6.4 - -First, download the latest package from https://www.gitlab.com/downloads/ to your GitLab server. - -```shell -# Stop unicorn and sidekiq so we can do database migrations -sudo gitlab-ctl stop unicorn -sudo gitlab-ctl stop sidekiq - -# One-time migration because we changed some directories since 6.6.0.pre1 -sudo mkdir -p /var/opt/gitlab/git-data -sudo mv /var/opt/gitlab/{repositories,gitlab-satellites} /var/opt/gitlab/git-data/ -sudo mv /var/opt/gitlab/uploads /var/opt/gitlab/gitlab-rails/ - -# Install the latest package -# Ubuntu: -sudo dpkg -i gitlab_6.6.4-omnibus.xxx.deb -# CentOS: -sudo rpm -Uvh gitlab-6.6.4_xxx.rpm - -# Reconfigure GitLab (includes database migrations) -sudo gitlab-ctl reconfigure - -# Start unicorn and sidekiq -sudo gitlab-ctl start -``` - -Done! -- libgit2 0.21.2