mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Fix the upgrade
This commit is contained in:
parent
7931d88725
commit
92d24470d0
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue