aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rlx_prv_assembler.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index 3afe617..4ef0a1a 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -305,8 +305,11 @@ write_bin_file(State, Release, OutputDir, RelDir) ->
case rlx_state:get(State, extended_start_script, false) of
true ->
Prefix = code:root_dir(),
+ DstFile = filename:join([BinDir, "start_clean.boot"]),
+ %% Explicitly remove before cp, since it is 0444 mode
+ ec_file:remove(DstFile),
ok = ec_file:copy(filename:join([Prefix, "bin", "start_clean.boot"]),
- filename:join([BinDir, "start_clean.boot"])),
+ DstFile),
NodeToolFile = nodetool_contents(),
InstallUpgradeFile = install_upgrade_escript_contents(),
NodeTool = filename:join([BinDir, "nodetool"]),