From d68b304b91c57407123bc00f936c4c46b037a8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=2ES?= Date: Tue, 19 Sep 2017 09:32:40 +0200 Subject: [PATCH] Updated gitlab_upgrade_minor9.1.0_to_9.3.11.sh --- gitlab_upgrade_minor9.1.0_to_9.3.11.sh | 27 ++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/gitlab_upgrade_minor9.1.0_to_9.3.11.sh b/gitlab_upgrade_minor9.1.0_to_9.3.11.sh index 92e3b93..5c716a9 100644 --- a/gitlab_upgrade_minor9.1.0_to_9.3.11.sh +++ b/gitlab_upgrade_minor9.1.0_to_9.3.11.sh @@ -15,10 +15,18 @@ if ! test -d "/home/${gitlabUser}/gitaly"; then cd /home/${gitlabUser}/gitaly sudo -u $gitlabUser -H cp config.toml{.example,} sudo -u $gitlabUser -H sed -i "s#/home/git/#/home/${gitlabUser}/#g" config.toml - cd - fi +# Config file +cd /home/${gitlabUser}/gitlab +echo "Manual merge needed!! Press enter to continue." +read +vimdiff config/gitlab.yml <(git show origin/9-3-stable:config/gitlab.yml.example) + +# Do a backup sudo -u $gitlabUser -H bundle exec rake gitlab:backup:create RAILS_ENV=production + +# Fetch $gitlabVersion sudo -u $gitlabUser -H git fetch --all sudo -u $gitlabUser -H git checkout -- Gemfile.lock db/schema.rb sudo -u $gitlabUser -H git checkout -B v${gitlabVersion} tags/v${gitlabVersion} @@ -34,15 +42,15 @@ sudo -u $gitlabUser -H git commit -a --amend -m 'change default user' # gitlab-shell cd /home/${gitlabUser}/gitlab-shell sudo -u $gitlabUser -H git fetch --all -sudo -u $gitlabUser -H git checkout -B v$(cat /home/${gitlabUser}/gitlab/GITLAB_SHELL_VERSION) \ - tags/v$(cat /home/${gitlabUser}/gitlab/GITLAB_SHELL_VERSION) +sudo -u $gitlabUser -H git checkout -B v$(