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:
parent
760d214b8f
commit
e6652bd7fc
2 changed files with 6 additions and 6 deletions
|
@ -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 Radarr or Sonarr are installed beforehand 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.
|
|
||||||
- Enabling Auto-updating in the settings is discouraged and no support will be provided if you do so.
|
- Enabling Auto-updating in the settings is discouraged and no support will be provided if you do so.
|
||||||
|
|
|
@ -117,12 +117,13 @@ popd
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPDATE A CONFIG FILE
|
# 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"
|
#chmod 660 "$final_path/data/config/config.ini"
|
||||||
chown $app: "$final_path/data/config/config.ini"
|
#chown $app: "$final_path/data/config/config.ini"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||||
|
|
Loading…
Reference in a new issue