Copy sys.config into upgrade tarball

While building an upgrade the sys.config file should be copied into the
upgrade tarball so release_handler:install_releases/1 does not clobber
the existing configuration from the application environment.
This commit is contained in:
joewilliams 2011-10-17 14:53:27 -07:00
parent f82028a544
commit 644bb0a312

View file

@ -157,6 +157,11 @@ boot_files(TargetDir, Ver, Name) ->
file:copy(
filename:join([TargetDir, "releases", Ver, "start_clean.boot"]),
filename:join([".", ?TMP, "releases", Ver, "start_clean.boot"])),
{ok, _} = file:copy(
filename:join([TargetDir, "releases", Ver, "sys.config"]),
filename:join([".", ?TMP, "releases", Ver, "sys.config"])),
{ok, _} = file:copy(
filename:join([TargetDir, "releases", Ver, "vm.args"]),
filename:join([".", ?TMP, "releases", Ver, "vm.args"])).