refactor(config-examples): do not include ee examples in ce
This commit is contained in:
parent
e0d05a02ff
commit
9aa83cb0a2
|
@ -520,12 +520,12 @@ relx_overlay(ReleaseType, Edition) ->
|
||||||
{copy, "bin/nodetool", "bin/nodetool-{{release_version}}"}
|
{copy, "bin/nodetool", "bin/nodetool-{{release_version}}"}
|
||||||
] ++ etc_overlay(ReleaseType, Edition).
|
] ++ etc_overlay(ReleaseType, Edition).
|
||||||
|
|
||||||
etc_overlay(ReleaseType, _Edition) ->
|
etc_overlay(ReleaseType, Edition) ->
|
||||||
Templates = emqx_etc_overlay(ReleaseType),
|
Templates = emqx_etc_overlay(ReleaseType),
|
||||||
[
|
[
|
||||||
{mkdir, "etc/"},
|
{mkdir, "etc/"},
|
||||||
{copy, "{{base_dir}}/lib/emqx/etc/certs", "etc/"},
|
{copy, "{{base_dir}}/lib/emqx/etc/certs", "etc/"}
|
||||||
{copy, "rel/config/examples", "etc/"}
|
| copy_examples(Edition)
|
||||||
] ++
|
] ++
|
||||||
lists:map(
|
lists:map(
|
||||||
fun
|
fun
|
||||||
|
@ -535,6 +535,14 @@ etc_overlay(ReleaseType, _Edition) ->
|
||||||
Templates
|
Templates
|
||||||
).
|
).
|
||||||
|
|
||||||
|
copy_examples(ce) ->
|
||||||
|
[{copy, "rel/config/examples", "etc/"}];
|
||||||
|
copy_examples(ee) ->
|
||||||
|
[
|
||||||
|
{copy, "rel/config/examples", "etc/"},
|
||||||
|
{copy, "rel/config/ee-examples/*", "etc/examples/"}
|
||||||
|
].
|
||||||
|
|
||||||
emqx_etc_overlay(ReleaseType) ->
|
emqx_etc_overlay(ReleaseType) ->
|
||||||
emqx_etc_overlay_per_rel(ReleaseType) ++
|
emqx_etc_overlay_per_rel(ReleaseType) ++
|
||||||
emqx_etc_overlay().
|
emqx_etc_overlay().
|
||||||
|
|
Loading…
Reference in New Issue