From 81ed1611af693fb9b4483a55c437a5c9d743966c Mon Sep 17 00:00:00 2001 From: Shunichi Shinohara Date: Fri, 27 Dec 2013 16:54:20 +0900 Subject: [PATCH] Add TODO comment to install_upgrade script template --- priv/templates/simplenode.install_upgrade.escript | 8 ++++++++ 1 file changed, 8 insertions(+) mode change 100644 => 100755 priv/templates/simplenode.install_upgrade.escript diff --git a/priv/templates/simplenode.install_upgrade.escript b/priv/templates/simplenode.install_upgrade.escript old mode 100644 new mode 100755 index 56cea19..0d4cbe3 --- a/priv/templates/simplenode.install_upgrade.escript +++ b/priv/templates/simplenode.install_upgrade.escript @@ -6,6 +6,14 @@ -define(TIMEOUT, 60000). -define(INFO(Fmt,Args), io:format(Fmt,Args)). +%% TODO: This script currently does NOT support slim releases. +%% Necessary steps to upgrade a slim release are as follows: +%% 1. unpack relup archive manually +%% 2. copy releases directory and necessary libraries +%% 3. using release_hander:set_unpacked/2 . +%% For more details, see https://github.com/rebar/rebar/pull/52 +%% and https://github.com/rebar/rebar/issues/202 + main([NodeName, Cookie, ReleasePackage]) -> TargetNode = start_distribution(NodeName, Cookie), {ok, Vsn} = rpc:call(TargetNode, release_handler, unpack_release,