From e0429a0cc7c879eff8f51d19c564257148203289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Thu, 14 Apr 2022 11:59:42 +0200 Subject: [PATCH] Fix change_url: bad db_pwd retrieval --- check_process | 2 +- scripts/change_url | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index f64d0f0..daa4523 100644 --- a/check_process +++ b/check_process @@ -21,7 +21,7 @@ ;upgrade=1 from_commit=CommitHash backup_restore=1 multi_instance=1 - ;change_url=1 + change_url=1 ;;; Options Email= Notification=none diff --git a/scripts/change_url b/scripts/change_url index 9a30f6e..896ee56 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -31,7 +31,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=mysqlpwd) secret_key=$(generate_secret_key) #================================================= @@ -103,6 +103,7 @@ then mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf # Store file checksum for the new config file location ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" + domain="$new_domain" fi #=================================================