From 45283b6b5db9270e815b0180916381f07e8a12c7 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 3 Jun 2022 01:27:11 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index becbf93..a04cb6f 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -32,7 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) # Add settings here as needed by your application db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name -db_pwd=$(ynh_app_setting_get --app=$app --key=db_pwd) +db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd) unicorn_workers=$(ynh_app_setting_get --app=$app --key=unicorn_workers) #================================================= @@ -43,6 +43,7 @@ ynh_script_progression --message="Backing up the app before changing its URL (ma # Backup the current version of the app ynh_backup_before_upgrade ynh_clean_setup () { + ynh_clean_check_starting # Remove the new domain config file, the remove script won't do it as it doesn't know yet its location. ynh_secure_remove --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" @@ -114,6 +115,9 @@ fi #================================================= # SPECIFIC MODIFICATIONS #================================================= +# UPDATE A CONFIG FILE +#================================================= +ynh_script_progression --message="Updating a config file..." discourse_config_file="$final_path/config/discourse.conf" # Configure hostname