diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2012-10-20 11:50:34 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2012-10-20 11:50:34 -0700 |
commit | b39febd25dd94580473b2d8815ae3b809d37e35b (patch) | |
tree | 5189393b8dd277850e0f7f2ffb17905d659f911d /src | |
parent | 32e67ef55ef6c4655d31568054d0ea3a8c38b55e (diff) | |
parent | 3de9167d99746995fe58111b86ac83fcb4ab6b41 (diff) |
Merge pull request #326 from saleyn/hostname_var
Add hostname variable to reltool overlay templates
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_reltool.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_reltool.erl b/src/rebar_reltool.erl index 6524e68..8618362 100644 --- a/src/rebar_reltool.erl +++ b/src/rebar_reltool.erl @@ -109,7 +109,8 @@ process_overlay(Config, ReltoolConfig) -> OverlayVars0 = dict:from_list([{erts_vsn, "erts-" ++ erlang:system_info(version)}, {rel_vsn, BootRelVsn}, - {target_dir, TargetDir}]), + {target_dir, TargetDir}, + {hostname, net_adm:localhost()}]), %% Load up any variables specified by overlay_vars OverlayVars1 = overlay_vars(Config, OverlayVars0, ReltoolConfig), |