1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bazarr_ynh.git synced 2024-09-03 18:06:27 +02:00

Do not overwrite config file during upgrade

This commit is contained in:
tituspijean 2022-02-06 12:04:16 +00:00
parent 760d214b8f
commit e6652bd7fc
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 6 additions and 6 deletions

View file

@ -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.

View file

@ -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