From aec6d30b22a47162dec94224f8bbe49246e93882 Mon Sep 17 00:00:00 2001 From: Luis Rascao Date: Tue, 23 Aug 2016 21:38:10 +0100 Subject: Always ask release handler to update paths on relup When performing a relup that involves starting a new application we need to inform release handler that the code paths need to be updated to account for the new apps. Otherwise the relup instruction application:start/2 will fail since it is unable to find the .app file. --- priv/templates/install_upgrade_escript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/priv/templates/install_upgrade_escript b/priv/templates/install_upgrade_escript index 0910c38..fe4e5e1 100644 --- a/priv/templates/install_upgrade_escript +++ b/priv/templates/install_upgrade_escript @@ -81,7 +81,8 @@ install_and_permafy(TargetNode, RelName, Vsn) -> ?INFO("ERROR: release_handler:check_install_release failed: ~p~n",[Reason]), erlang:halt(3) end, - case rpc:call(TargetNode, release_handler, install_release, [Vsn], ?TIMEOUT) of + case rpc:call(TargetNode, release_handler, install_release, + [Vsn, [{update_paths, true}]], ?TIMEOUT) of {ok, _, _} -> ?INFO("Installed Release: ~s~n", [Vsn]), permafy(TargetNode, RelName, Vsn), -- cgit v1.2.3