mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
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:
parent
f82028a544
commit
644bb0a312
1 changed files with 5 additions and 0 deletions
|
@ -157,6 +157,11 @@ boot_files(TargetDir, Ver, Name) ->
|
||||||
file:copy(
|
file:copy(
|
||||||
filename:join([TargetDir, "releases", Ver, "start_clean.boot"]),
|
filename:join([TargetDir, "releases", Ver, "start_clean.boot"]),
|
||||||
filename:join([".", ?TMP, "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(
|
{ok, _} = file:copy(
|
||||||
filename:join([TargetDir, "releases", Ver, "vm.args"]),
|
filename:join([TargetDir, "releases", Ver, "vm.args"]),
|
||||||
filename:join([".", ?TMP, "releases", Ver, "vm.args"])).
|
filename:join([".", ?TMP, "releases", Ver, "vm.args"])).
|
||||||
|
|
Loading…
Reference in a new issue