1
0
Fork 0
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:
Pierre Bourré 2019-07-04 23:48:13 +02:00
parent 7931d88725
commit 92d24470d0

View file

@ -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