From 5f35698d044d5259e6587973fd88b7f114a18fb3 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 17 Mar 2022 19:49:51 +0100 Subject: [PATCH] Update change_url --- scripts/change_url | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 976086a..2f5c7ba 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -19,7 +19,7 @@ old_domain=$YNH_APP_OLD_DOMAIN old_path=$YNH_APP_OLD_PATH new_domain=$YNH_APP_NEW_DOMAIN -new_path=$(ynh_normalize_url_path --path_url $YNH_APP_NEW_PATH) +new_path=$YNH_APP_NEW_PATH app=$YNH_APP_INSTANCE_NAME @@ -31,6 +31,9 @@ ynh_script_progression --message="Loading installation settings..." # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) +# Add settings here as needed by your application +pgadmin_user="$app" + #================================================= # BACKUP BEFORE CHANGE URL THEN ACTIVE TRAP #================================================= @@ -101,8 +104,9 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= -# ... +# UPDATE CONFIGURATION #================================================= +ynh_script_progression --message="Updating configuration..." domain=$new_domain path_url=$new_path