Browse Source

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.
pull/3/head
joewilliams 13 years ago
parent
commit
644bb0a312
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/rebar_upgrade.erl

+ 5
- 0
src/rebar_upgrade.erl 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"])).

Loading…
Cancel
Save