diff --git a/scripts/change_url b/scripts/change_url index 3b5a8f1..0844e6c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -29,7 +29,7 @@ ynh_systemd_action --service_name=$app --action="stop" #================================================= 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 -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 else 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" \ --replace_string=" proxy_set_header X-Remote-User" \ --target_file="../conf/nginx.conf" - fi ynh_change_url_nginx_config