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"