chore(build): refactor rebar.config.erl overlay function

This commit is contained in:
Zaiming Shi 2021-03-09 21:14:58 +01:00
parent 0eda65d06f
commit b4ee2f8d24
1 changed files with 5 additions and 2 deletions

View File

@ -297,7 +297,10 @@ relx_overlay(ReleaseType) ->
, {copy, "_build/default/lib/cuttlefish/cuttlefish", "bin/cuttlefish"}
, {copy, "_build/default/lib/cuttlefish/cuttlefish", "bin/cuttlefish-{{release_version}}"}
, {copy, "priv/emqx.schema", "releases/{{release_version}}/"}
] ++ ee_etc_overlay() ++ etc_overlay(ReleaseType).
] ++ case is_enterprise() of
true -> ee_etc_overlay(ReleaseType);
false -> etc_overlay(ReleaseType)
end.
etc_overlay(ReleaseType) ->
PluginApps = relx_plugin_apps(ReleaseType),
@ -445,5 +448,5 @@ list_dir(Dir) ->
%% ==== Enterprise supports below ==================================================================
ee_profiles(_Vsn) -> [].
ee_etc_overlay() -> [].
ee_etc_overlay(_) -> [].
ee_overlay_vars(_PkgType) -> [].