diff --git a/scripts/upgrade b/scripts/upgrade index 703f731..d9c81e7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -15,6 +15,19 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) +#================================================= +# STANDARD UPGRADE STEPS +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= +ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 + +# If language doesn't exist, create it +if [ -z "${language:-}" ]; then + language="en" + ynh_app_setting_set --app=$app --key=language --value=$language +#fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -67,7 +80,7 @@ then ynh_script_progression --message="Reconfiguring wallabag..." --weight=1 # Copy and set Wallabag dist configuration - #ynh_add_config --template="../conf/parameters.yml" --destination="$install_dir/app/config/parameters.yml" + ynh_add_config --template="../conf/parameters.yml" --destination="$install_dir/app/config/parameters.yml" #================================================= # UPGRADE WALLABAG