From 3de9167d99746995fe58111b86ac83fcb4ab6b41 Mon Sep 17 00:00:00 2001 From: serge Date: Tue, 16 Oct 2012 16:12:30 -0400 Subject: [PATCH] Add hostname variable to reltool overlay templates --- src/rebar_reltool.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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),