1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

fix portPuma migration

This commit is contained in:
Kay0u 2020-05-23 23:08:49 +02:00
parent 20c0977382
commit b1a3ac3c6d
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -136,6 +136,8 @@ fi
if [ -z "$portPuma" ]; then
if [ -z "$(ynh_app_setting_get --app="$app" --key=unicorn_port)" ]; then
portPuma=$(grep -F "unicorn['port']" "/etc/gitlab/gitlab.rb" | cut -d' ' -f3)
else
portPuma=$(ynh_app_setting_get --app="$app" --key=unicorn_port)
fi
ynh_app_setting_set --app=$app --key=puma_port --value=$portPuma
ynh_app_setting_delete --app=$app --key=unicorn_port
@ -259,7 +261,7 @@ then
source ./upgrade.d/upgrade.$current_major_version.last.sh
fi
}
# To update gitlab from major version A to B, we have to go to the last minor version
# of the major version A and then go to the first minor version of the major version B
# to finally go to the current minor version of the major version B