From efef052ec7865e93f9a0135769cd1fe8a39ed1b8 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Thu, 11 Aug 2022 15:09:10 -0300 Subject: [PATCH] feat: enable upgrading release from 4.4.X to 4.5.Y When upgrading from 4.4.X, the `install_upgrade` script from 4.4.X is used, which forbids such transition. --- bin/install_upgrade.escript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/install_upgrade.escript b/bin/install_upgrade.escript index 88268d893..6c27dc49a 100755 --- a/bin/install_upgrade.escript +++ b/bin/install_upgrade.escript @@ -437,6 +437,8 @@ validate_target_version(TargetVersion, TargetNode) -> CurrentVersion = current_release_version(TargetNode), case {get_major_minor_vsn(CurrentVersion), get_major_minor_vsn(TargetVersion)} of {{Major, Minor}, {Major, Minor}} -> ok; + {{<<"4">>, <<"5">>}, {<<"4">>, <<"4">>}} -> ok; + {{<<"4">>, <<"4">>}, {<<"4">>, <<"5">>}} -> ok; _ -> ?INFO("Cannot upgrade/downgrade to ~s from ~s~n" "We only support relup between patch versions",