mirror of
https://github.com/YunoHost-Apps/mautrix_telegram_ynh.git
synced 2024-09-03 19:45:55 +02:00
hopefully fix upgrade and restore
This commit is contained in:
parent
b703c82de5
commit
e530635ef7
2 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
mautrix_bridge_db_name=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_name)
|
mautrix_bridge_db_name=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_name)
|
||||||
mautrix_bridge_db_pwd=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_pwd)
|
mautrix_bridge_db_pwd=$(ynh_app_setting_get --app=$app --key=mautrix_bridge_db_pwd)
|
||||||
|
app_service_registration_path=$(ynh_app_setting_get --app=$app --key=app_service_registration_path)
|
||||||
mautrix_bridge_db_user=$mautrix_bridge_db_name
|
mautrix_bridge_db_user=$mautrix_bridge_db_name
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -147,6 +147,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# main configuration
|
# main configuration
|
||||||
|
mautrix_config_path="$final_path/config.yaml"
|
||||||
ynh_backup_if_checksum_is_different --file="$mautrix_config_path"
|
ynh_backup_if_checksum_is_different --file="$mautrix_config_path"
|
||||||
# as_token hs_token are autogenerated, save them before regenerating the config
|
# as_token hs_token are autogenerated, save them before regenerating the config
|
||||||
as_token=$(grep as_token "$mautrix_config_path" | sed "s/ *as_token: *//")
|
as_token=$(grep as_token "$mautrix_config_path" | sed "s/ *as_token: *//")
|
||||||
|
|
Loading…
Reference in a new issue