mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Update upgrade
This commit is contained in:
parent
6037f69853
commit
d8a5ceb9eb
1 changed files with 3 additions and 3 deletions
|
@ -50,20 +50,20 @@ fi
|
|||
|
||||
# If path_url doesn't exist, retrieve it
|
||||
if [ -z $path_url ]; then
|
||||
path_url=$(grep "location" "/etc/nginx/conf.d/${domain}.d/gitlab.conf" | cut -d'/' -f2)
|
||||
path_url=$(grep "location" "/etc/nginx/conf.d/${domain}.d/gitlab.conf" | cut -d' ' -f2)
|
||||
path_url=$(ynh_normalize_url_path $path_url)
|
||||
ynh_app_setting_set $app path_url path_url
|
||||
fi
|
||||
|
||||
# If port doesn't exist, retrieve it
|
||||
if [ -z $port ]; then
|
||||
port=$(grep -F "nginx['listen_port']" "/etc/gitlab/gitlab.rb" | cut -d'/' -f3)
|
||||
port=$(grep -F "nginx['listen_port']" "/etc/gitlab/gitlab.rb" | cut -d' ' -f3)
|
||||
ynh_app_setting_set $app web_port $port
|
||||
fi
|
||||
|
||||
# If port doesn't exist, retrieve it
|
||||
if [ -z $portUnicorn ]; then
|
||||
portUnicorn=$(grep -F "unicorn['port']" "/etc/gitlab/gitlab.rb" | cut -d'/' -f3)
|
||||
portUnicorn=$(grep -F "unicorn['port']" "/etc/gitlab/gitlab.rb" | cut -d' ' -f3)
|
||||
ynh_app_setting_set $app unicorn_port $portUnicorn
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue