Skip to content

Commit

Permalink
Merge pull request #1827 from tsloughter/local-eperm
Browse files Browse the repository at this point in the history
otp21 eperm fix for local install/upgrade, no need to set uid/gid
  • Loading branch information
ferd authored Jun 25, 2018
2 parents 8411577 + 9a72b89 commit 4161762
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/rebar_prv_local_install.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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]),

Expand Down

0 comments on commit 4161762

Please sign in to comment.