1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wallabag2_ynh.git synced 2024-10-01 13:35:06 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-11-16 12:57:59 +01:00
parent c165202753
commit a3ab826fdc

View file

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