From a3ab826fdcc3816b8046bb11f8d6329fdeaa65f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 16 Nov 2023 12:57:59 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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