From e530635ef7110a9b28c858314197d23395e03c53 Mon Sep 17 00:00:00 2001 From: Benedikt Tissot Date: Mon, 5 Apr 2021 16:01:48 +0200 Subject: [PATCH] hopefully fix upgrade and restore --- scripts/restore | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/restore b/scripts/restore index fedb9f6..daaaca5 100755 --- a/scripts/restore +++ b/scripts/restore @@ -32,6 +32,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) 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_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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f10e983..41d2840 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -147,6 +147,7 @@ ynh_add_systemd_config #================================================= # main configuration +mautrix_config_path="$final_path/config.yaml" ynh_backup_if_checksum_is_different --file="$mautrix_config_path" # as_token hs_token are autogenerated, save them before regenerating the config as_token=$(grep as_token "$mautrix_config_path" | sed "s/ *as_token: *//")