diff options
author | Tristan Sloughter <t@crashfast.com> | 2018-06-25 13:54:59 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2018-06-25 13:54:59 -0600 |
commit | 9a72b89ad2cdfe341a65a13766106b37ab446371 (patch) | |
tree | a3befbdaff7a234caeec3f3aeb6c18710a062985 /src | |
parent | 8411577bdcf3102e085f090806e39fe96e8036a3 (diff) |
otp21 eperm fix for local install/upgrade, no need to set uid/gid
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_local_install.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rebar_prv_local_install.erl b/src/rebar_prv_local_install.erl index c41812f..cd6a204 100644 --- a/src/rebar_prv_local_install.erl +++ b/src/rebar_prv_local_install.erl @@ -89,15 +89,9 @@ extract_escript(State, ScriptPath) -> BinFile = filename:join(BinDir, "rebar3"), filelib:ensure_dir(BinFile), - {ok, #file_info{mode = _, - uid = Uid, - gid = Gid}} = file:read_file_info(ScriptPath), - ?INFO("Writing rebar3 run script ~ts...", [BinFile]), file:write_file(BinFile, bin_contents(OutputDir)), - ok = file:write_file_info(BinFile, #file_info{mode=33277, - uid=Uid, - gid=Gid}), + ok = file:write_file_info(BinFile, #file_info{mode=33277}), ?INFO("Add to $PATH for use: export PATH=~ts:$PATH", [BinDir]), |