From 89b13986d5776d4505d1bfe14dca0e9c1ed819e2 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 27 Feb 2019 04:15:30 +0100 Subject: [PATCH] Fix path_url --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 2e3a46c..e1210ca 100644 --- a/scripts/install +++ b/scripts/install @@ -166,7 +166,7 @@ ynh_print_info "Configuring nginx web server..." if [ $path_url = "/" ]; then ynh_replace_string "__SUB_PATH__" "" "../conf/nginx.conf" else - ynh_replace_string "__SUB_PATH__" "$path" "../conf/nginx.conf" + ynh_replace_string "__SUB_PATH__" "$path_url" "../conf/nginx.conf" fi # Create a dedicated nginx config diff --git a/scripts/upgrade b/scripts/upgrade index b6ad897..2a0a4d9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,7 +81,7 @@ if [ $path_url = "/" ] then ynh_replace_string "__SUB_PATH__" "" "../conf/nginx.conf" else - ynh_replace_string "__SUB_PATH__" "$path" "../conf/nginx.conf" + ynh_replace_string "__SUB_PATH__" "$path_url" "../conf/nginx.conf" fi ynh_add_nginx_config "nextclouddomain"