mirror of
https://github.com/YunoHost-Apps/mautrix_telegram_ynh.git
synced 2024-09-03 19:45:55 +02:00
Fix db_user var empty on upgrade
This commit is contained in:
parent
4846201c24
commit
d7f7487c07
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ fi
|
||||||
if [ -z "$db_name" ]
|
if [ -z "$db_name" ]
|
||||||
then
|
then
|
||||||
db_name=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_name)
|
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
|
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue