From 0a717b511f2b0de26299044da6aabb3cbe0d0de6 Mon Sep 17 00:00:00 2001 From: Gofannon <17145502+Gofannon@users.noreply.github.com> Date: Tue, 17 Jul 2018 00:20:13 +0200 Subject: [PATCH 1/2] [fix] Fix "change_url" --- scripts/change_url | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index edaede5..14308ae 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,6 +21,17 @@ new_path=$YNH_APP_NEW_PATH app=$YNH_APP_INSTANCE_NAME +#================================================= +# LOAD SETTINGS +#================================================= + +# Needed for helper "ynh_add_nginx_config" +final_path=$(ynh_app_setting_get $app final_path) + +# Add settings here as needed by your application +#db_name=$(ynh_app_setting_get "$app" db_name) +#db_pwd=$(ynh_app_setting_get $app db_pwd) + #================================================= # CHECK THE SYNTAX OF THE PATHS #================================================= @@ -63,7 +74,7 @@ then domain="$old_domain" path_url="$new_path" # Store path_url setting - ynh_app_setting_set $app path_url "$path_url" + ynh_app_setting_set $app path "$path_url" # Create a dedicated nginx config ynh_add_nginx_config if [ "$path_url" != "/" ] From b704e1cbcb0c88faea15b5b594a34975c0f1064a Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 20 Jul 2018 13:48:49 +0200 Subject: [PATCH 2/2] path don't need to be stored --- scripts/change_url | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 14308ae..cc1a7e2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -73,8 +73,6 @@ then # Set global variables for nginx helper domain="$old_domain" path_url="$new_path" - # Store path_url setting - ynh_app_setting_set $app path "$path_url" # Create a dedicated nginx config ynh_add_nginx_config if [ "$path_url" != "/" ]