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 #=================================================