diff --git a/check_process b/check_process index 208ef62..94d22bc 100644 --- a/check_process +++ b/check_process @@ -15,8 +15,8 @@ # upgrade=0 from_commit=CommitHash backup_restore=1 multi_instance=0 - port_already_use=0 - change_url=0 + port_already_use=1 + change_url=1 ;;; Options Email= Notification=none diff --git a/scripts/change_url b/scripts/change_url index 126010e..810f7db 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,6 +21,7 @@ new_path=$YNH_APP_NEW_PATH app=$YNH_APP_INSTANCE_NAME + #================================================= # LOAD SETTINGS #================================================= @@ -28,6 +29,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) +port_web=$(ynh_app_setting_get --app=$app --key=port_web) # Add settings here as needed by your application #db_name=$(ynh_app_setting_get --app=$app --key=db_name) @@ -92,7 +94,7 @@ then domain="$old_domain" path_url="$new_path" # Create a dedicated NGINX config - ynh_add_nginx_config + ynh_add_nginx_config "port_web" fi # Change the domain for NGINX