diff options
author | Tristan Sloughter <[email protected]> | 2012-12-31 08:56:02 -0600 |
---|---|---|
committer | Eric <[email protected]> | 2012-12-31 10:56:59 -0500 |
commit | 059d9f6d28d8f4e963f556401e23eed44fc44b9d (patch) | |
tree | d41466b126dff43269c7178ccd30649432e1a93b /src/rcl_prv_overlay.erl | |
parent | 60e04b48942a8d2e0d401ae5deb84e4dc61d05f5 (diff) | |
download | relx-059d9f6d28d8f4e963f556401e23eed44fc44b9d.tar.gz relx-059d9f6d28d8f4e963f556401e23eed44fc44b9d.tar.bz2 relx-059d9f6d28d8f4e963f556401e23eed44fc44b9d.zip |
use relative root for overlay vars file path
Diffstat (limited to 'src/rcl_prv_overlay.erl')
-rw-r--r-- | src/rcl_prv_overlay.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rcl_prv_overlay.erl b/src/rcl_prv_overlay.erl index e792a4f..94b5f3d 100644 --- a/src/rcl_prv_overlay.erl +++ b/src/rcl_prv_overlay.erl @@ -112,7 +112,9 @@ get_overlay_vars_from_file(State, OverlayVars) -> -spec read_overlay_vars(rcl_state:t(), proplists:proplist(), file:name()) -> {ok, rcl_state:t()} | relcool:error(). read_overlay_vars(State, OverlayVars, FileName) -> - case file:consult(FileName) of + RelativeRoot = get_relative_root(State), + RelativePath = filename:join(RelativeRoot, erlang:iolist_to_binary(FileName)), + case file:consult(RelativePath) of {ok, Terms} -> case render_overlay_vars(OverlayVars, Terms, []) of {ok, NewTerms} -> |