From 92d24470d066588c3fee3874b25b7857d64edd6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Bourr=C3=A9?= Date: Thu, 4 Jul 2019 23:48:13 +0200 Subject: [PATCH] Fix the upgrade --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 0078176..74dd60d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -249,6 +249,11 @@ then current_major_version=${current_version%%.*} + # If the current version is equal to the last minor version of upgrade.$current_major_version.sh, increment the major version + if [ "$gitlab_version" = "$current_version" ]; then + current_major_version=$(($current_major_version + 1)) + fi + # If the current version has the same major version than the next one, # then it's the last upgrade to do if [ "$last_major_version" -eq "$current_major_version" ]; then