From e6652bd7fc471c4cc71ba6ba81ee07410990a429 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 6 Feb 2022 12:04:16 +0000 Subject: [PATCH] Do not overwrite config file during upgrade --- doc/DISCLAIMER.md | 3 +-- scripts/upgrade | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index ac242a3..fbe55e4 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,3 +1,2 @@ -- If Radarr or Sonarr are installed on your server, the app will automatically retrieve their settings and integrate them in its config. - - If you add or remove them afterwards, force an upgrade of Bazarr: it will update its settings again. +- If Radarr or Sonarr are installed beforehand on your server, the app will automatically retrieve their settings and integrate them in its config. - Enabling Auto-updating in the settings is discouraged and no support will be provided if you do so. diff --git a/scripts/upgrade b/scripts/upgrade index 99de2ac..feda30c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -117,12 +117,13 @@ popd #================================================= # UPDATE A CONFIG FILE #================================================= -ynh_script_progression --message="Updating a configuration file..." --weight=1 +#FIXME: Find a way not to override all settings while upgrading the config file. +#ynh_script_progression --message="Updating a configuration file..." --weight=1 -ynh_add_config --template="config.ini" --destination="$final_path/data/config/config.ini" +#ynh_add_config --template="config.ini" --destination="$final_path/data/config/config.ini" -chmod 660 "$final_path/data/config/config.ini" -chown $app: "$final_path/data/config/config.ini" +#chmod 660 "$final_path/data/config/config.ini" +#chown $app: "$final_path/data/config/config.ini" #================================================= # YUNOHOST MULTIMEDIA INTEGRATION