From c23ea33bd3f8314d99187ac42daa5b79dbaebd35 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 7 Mar 2019 18:30:47 +0100 Subject: [PATCH] fix nginx --- scripts/change_url | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index f0e667b..f8b9da0 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -20,9 +20,6 @@ old_path=$YNH_APP_OLD_PATH new_domain=$YNH_APP_NEW_DOMAIN new_path=$YNH_APP_NEW_PATH -db_name=$(ynh_app_setting_get $app db_name) -port=$(ynh_app_setting_get $app port) - app=$YNH_APP_INSTANCE_NAME #================================================= @@ -36,6 +33,8 @@ 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) +db_name=$(ynh_app_setting_get $app db_name) +port=$(ynh_app_setting_get $app port) #================================================= # CHECK THE SYNTAX OF THE PATHS @@ -80,7 +79,7 @@ then domain="$old_domain" path_url="$new_path" # Create a dedicated nginx config - ynh_add_nginx_config port + ynh_add_nginx_config fi # Change the domain for nginx