Merge pull request #9471 from thalesmg/check-unpack-target-v44
fix(install_upgrade): check target version when unpacking (v4.4)
This commit is contained in:
commit
8ad9e7a008
|
@ -32,6 +32,7 @@ main(Args) ->
|
|||
unpack({RelName, NameTypeArg, NodeName, Cookie}, Opts) ->
|
||||
TargetNode = start_distribution(NodeName, NameTypeArg, Cookie),
|
||||
Version = proplists:get_value(version, Opts),
|
||||
validate_target_version(Version, TargetNode),
|
||||
case unpack_release(RelName, TargetNode, Version) of
|
||||
{ok, Vsn} ->
|
||||
?INFO("Unpacked successfully: ~p", [Vsn]);
|
||||
|
|
Loading…
Reference in New Issue