From 819265607ee0eccecfd8375d69b038036827229a Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 20 Aug 2023 16:50:19 +0200 Subject: [PATCH] downward compatibility --- scripts/upgrade | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 17bbff9..6140a46 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -15,6 +15,18 @@ source /usr/share/yunohost/helpers upgrade_type=$(ynh_check_app_version_changed) +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= +ynh_script_progression --message="Downward Compatibility checks..." --weight=1 + +#move from /opt/yunohost to /var/www : symbolic link will be remade by multimedia dir +if ynh_compare_current_package_version --comparison lt --version 1.15.0~ynh3; then + if [ -L /home/yunohost.multimedia/share/Game ]; then + #ynh_secure_remove --file="/home/yunohost.multimedia/share/Game" + rm /home/yunohost.multimedia/share/Game #ynh_secure_remove does not remove link + fi +fi #================================================= # STANDARD UPGRADE STEPS #=================================================