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

Enhance conditional upgrade after 1.4.0

This commit is contained in:
tituspijean 2024-05-11 12:37:23 +02:00
parent 6f4c4aa287
commit fb93e4a13d
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -92,7 +92,7 @@ popd
#=================================================
#FIXME: Find a way not to override all settings while upgrading the config file.
#FIXME: This is done once after v1.4.0 that changed the config file from .ini to .yaml format
if ynh_compare_current_package_version --comparison lt --version 1.4.0~ynh1
if ynh_compare_current_package_version --comparison lt --version 1.4.0~ynh1 || [ ! -f "$install_dir/data/config/config.yaml" ]
then
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="config.yaml" --destination="$install_dir/data/config/config.yaml"