From dd36bef3bb09c6e60c80d7f41cb11a46b9b5b64f Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Fri, 24 Dec 2021 10:56:50 -0300 Subject: [PATCH] fix(install_upgrade): remove `vm_args` backup in `install` The `install_upgrade.escript` depended on being able to retrieve the `vm_args` argument from `init`, but that options has been removed recently. Since this backup was unused, we also remove it here. --- bin/install_upgrade.escript | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bin/install_upgrade.escript b/bin/install_upgrade.escript index 97548cba8..30430d77a 100755 --- a/bin/install_upgrade.escript +++ b/bin/install_upgrade.escript @@ -248,10 +248,6 @@ parse_version(V) when is_list(V) -> hd(string:tokens(V,"/")). check_and_install(TargetNode, Vsn) -> - %% Backup the vm.args. VM args should be unchanged during hot upgrade - %% but we still backup it here - {ok, [[CurrVmArgs]]} = rpc:call(TargetNode, init, get_argument, [vm_args], ?TIMEOUT), - {ok, _} = file:copy(CurrVmArgs, filename:join(["releases", Vsn, "vm.args"])), %% Backup the sys.config, this will be used when we check and install release %% NOTE: We cannot backup the old sys.config directly, because the %% configs for plugins are only in app-envs, not in the old sys.config