From 0c69a3420e2a4572e02bba91bc941954572d488f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 13 Jul 2024 17:30:27 +0200 Subject: [PATCH] Fix conditional framaforms to yakforms --- scripts/upgrade | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index aa46e74..b906109 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -10,12 +10,17 @@ source /usr/share/yunohost/helpers #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= -# ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 #================================================= # Framaforms 2 Yakforms Backup #================================================= -upgrade_to_yakforms=true + +if ynh_compare_current_package_version --comparison lt --version 1.1~ynh1; then + upgrade_to_yakforms=true +else + upgrade_to_yakforms=false +fi if [ "$upgrade_to_yakforms" = false ]; then pushd "$install_dir"