1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

change_url update

This commit is contained in:
Krakinou 2018-12-27 18:09:19 +01:00
parent 995471702a
commit 610b77cdaa

View file

@ -17,7 +17,6 @@ old_domain=$YNH_APP_OLD_DOMAIN
old_path=$YNH_APP_OLD_PATH
new_domain=$YNH_APP_NEW_DOMAIN
new_path=$YNH_APP_NEW_PATH
app=$YNH_APP_INSTANCE_NAME
#=================================================
@ -70,6 +69,10 @@ then
# Set global variables for nginx helper
domain="$old_domain"
path_url="$new_path"
#Cannot use empty string for X-script-name, causes an issue in the python prg
if [ $path_url = "/" ] ; then
ynh_replace_string "X-Script-Name __PATH__;" "X-Script-Name /$app;" ../conf/nginx.conf
fi
# Create a dedicated nginx config
ynh_add_nginx_config
fi