mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
use new_path instead of path_url
This commit is contained in:
parent
f49b71de87
commit
82c8532b5f
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,7 @@ ynh_systemd_action --service_name=$app --action="stop"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
||||||
#Cannot use empty string for X-script-name, causes an issue in the python prg
|
#Cannot use empty string for X-script-name, causes an issue in the python prg
|
||||||
if [ $path_url = "/" ] ; then
|
if [ $new_path = "/" ] ; then
|
||||||
ynh_replace_string " proxy_set_header X-Script-Name" "# proxy_set_header X-Script-Name" ../conf/nginx.conf
|
ynh_replace_string " proxy_set_header X-Script-Name" "# proxy_set_header X-Script-Name" ../conf/nginx.conf
|
||||||
else
|
else
|
||||||
ynh_replace_string "# proxy_set_header X-Script-Name" " proxy_set_header X-Script-Name" ../conf/nginx.conf
|
ynh_replace_string "# proxy_set_header X-Script-Name" " proxy_set_header X-Script-Name" ../conf/nginx.conf
|
||||||
|
@ -43,7 +43,6 @@ else
|
||||||
ynh_replace_string --match_string="# proxy_set_header X-Remote-User" \
|
ynh_replace_string --match_string="# proxy_set_header X-Remote-User" \
|
||||||
--replace_string=" proxy_set_header X-Remote-User" \
|
--replace_string=" proxy_set_header X-Remote-User" \
|
||||||
--target_file="../conf/nginx.conf"
|
--target_file="../conf/nginx.conf"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_change_url_nginx_config
|
ynh_change_url_nginx_config
|
||||||
|
|
Loading…
Add table
Reference in a new issue