From d7f7487c076c3c73bea9e786d7f0e035dca52b91 Mon Sep 17 00:00:00 2001 From: Dante Date: Wed, 7 Dec 2022 11:12:10 +0000 Subject: [PATCH] Fix db_user var empty on upgrade --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 0e4aa19..09995cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -80,6 +80,8 @@ fi if [ -z "$db_name" ] then db_name=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_name) + # db_name and db_user share the same value + db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name fi