aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2014-05-17 11:05:05 +0200
committerJordan Wilberding <[email protected]>2014-05-17 11:05:05 +0200
commitd9c7acb9461569ab439499d0a90d634c75e14573 (patch)
tree115c0864f4584603e8e71760ce4462d32a49d202 /src
parenta52e556a15b805561f42689b7de0e14097b2bff4 (diff)
downloadrelx-d9c7acb9461569ab439499d0a90d634c75e14573.tar.gz
relx-d9c7acb9461569ab439499d0a90d634c75e14573.tar.bz2
relx-d9c7acb9461569ab439499d0a90d634c75e14573.zip
Fix for #182, which requires we delete a read-only file before overwriting it
Diffstat (limited to 'src')
-rw-r--r--src/rlx_prv_assembler.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index 069344e..4a50941 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -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(),
@@ -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;