Skip to content

Commit

Permalink
Fix for #182, which requires we delete a read-only file before overwr…
Browse files Browse the repository at this point in the history
…iting it
  • Loading branch information
jwilberding committed May 17, 2014
1 parent a52e556 commit d9c7acb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rlx_prv_assembler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ include_erts(State, Release, OutputDir, RelDir) ->
end,
case rlx_state:get(State, extended_start_script, false) of
true ->
ok = ec_file:remove(filename:join([OutputDir, "bin", "start_clean.boot"])),
ok = ec_file:copy(filename:join([Prefix, "bin", "start_clean.boot"]),
filename:join([OutputDir, "bin", "start_clean.boot"])),
NodeToolFile = nodetool_contents(),
Expand Down Expand Up @@ -700,7 +701,7 @@ ensure_not_exist(RelConfPath) ->

erl_script(ErtsVsn) ->
render(erl_script_dtl, [{erts_vsn, ErtsVsn}]).

bin_file_contents(OsFamily, RelName, RelVsn, ErtsVsn, ErlOpts) ->
Template = case OsFamily of
unix -> bin_dtl;
Expand Down

0 comments on commit d9c7acb

Please sign in to comment.