From 267e37e5c58a28955a24eb77e684e6b25998ab8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 12 Jan 2024 18:50:15 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2226b70..e4ca88d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,8 +48,7 @@ fi config="/etc/$app/config.exs" -# if ynh_compare_current_package_version --comparison gt --version "1.1.1~ynh1"; then -if ynh_version_gt "1.1.1~ynh1" "${previous_version}" ; then +if ynh_compare_current_package_version --comparison le --version "1.1.1~ynh1"; then ynh_script_progression --message="Upgrading to OTP release..." --weight=1 # Give permission to the data_dir @@ -73,8 +72,7 @@ if ynh_version_gt "1.1.1~ynh1" "${previous_version}" ; then ynh_backup_if_checksum_is_different --file="$config" fi -# if ynh_compare_current_package_version --comparison gt --version "2.0.5~ynh1"; then -if ynh_version_gt "2.0.5~ynh1" "${previous_version}" ; then +if ynh_compare_current_package_version --comparison le --version "2.0.5~ynh1"; then cat "../conf/ldap.exs" >> "$config" fi