From fac62c49ff1f1199384288cecb6a4fad50adcd1a Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sun, 27 May 2018 15:50:56 +0200 Subject: [PATCH] Use newest version of ynh_add_nginx_config from #462 No more need to deal with "#sub_path_only" --- scripts/change_url | 5 ----- scripts/install | 5 ----- scripts/upgrade | 5 ----- 3 files changed, 15 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index d18174c..4a5b18d 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -66,11 +66,6 @@ then ynh_app_setting_set $app path_url "$path_url" # Create a dedicated nginx config ynh_add_nginx_config - if [ "$path_url" != "/" ] - then - ynh_replace_string "^#sub_path_only" "" "$nginx_conf_path" - fi - ynh_store_file_checksum "$nginx_conf_path" fi # Change the domain for nginx diff --git a/scripts/install b/scripts/install index 44388fd..6a4bcfa 100755 --- a/scripts/install +++ b/scripts/install @@ -105,11 +105,6 @@ ynh_setup_source "$final_path" # Create a dedicated nginx config ynh_add_nginx_config -if [ "$path_url" != "/" ] -then - ynh_replace_string "^#sub_path_only" "" "/etc/nginx/conf.d/$domain.d/$app.conf" -fi -ynh_store_file_checksum "/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # CREATE DEDICATED USER diff --git a/scripts/upgrade b/scripts/upgrade index 015e6b6..30c17ef 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,11 +83,6 @@ ynh_setup_source "$final_path" # Create a dedicated nginx config ynh_add_nginx_config -if [ "$path_url" != "/" ] -then - ynh_replace_string "^#sub_path_only" "" "/etc/nginx/conf.d/$domain.d/$app.conf" -fi -ynh_store_file_checksum "/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # CREATE DEDICATED USER