Merge pull request #9905 from zmstone/0203-disable-telemetry-for-ee-by-default
feat: disable telemetry for ee by default
This commit is contained in:
commit
71f8e10358
|
@ -4,13 +4,13 @@ concurrency:
|
||||||
group: relup-${{ github.event_name }}-${{ github.ref }}
|
group: relup-${{ github.event_name }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
on:
|
# on:
|
||||||
push:
|
# push:
|
||||||
branches:
|
# branches:
|
||||||
- '**'
|
# - '**'
|
||||||
tags:
|
# tags:
|
||||||
- e*
|
# - e*
|
||||||
pull_request:
|
# pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
relup_test_plan:
|
relup_test_plan:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
telemetry.enable = false
|
|
@ -30,7 +30,7 @@ main(_) ->
|
||||||
case IsEnterprise of
|
case IsEnterprise of
|
||||||
true ->
|
true ->
|
||||||
EnterpriseCfgs = get_all_cfgs("lib-ee"),
|
EnterpriseCfgs = get_all_cfgs("lib-ee"),
|
||||||
EnterpriseConf = merge("", EnterpriseCfgs),
|
EnterpriseConf = merge(<<"">>, EnterpriseCfgs),
|
||||||
ok = file:write_file("apps/emqx_conf/etc/emqx-enterprise.conf.all", EnterpriseConf);
|
ok = file:write_file("apps/emqx_conf/etc/emqx-enterprise.conf.all", EnterpriseConf);
|
||||||
false ->
|
false ->
|
||||||
ok
|
ok
|
||||||
|
@ -41,22 +41,21 @@ is_enterprise() ->
|
||||||
nomatch =/= string:find(Profile, "enterprise").
|
nomatch =/= string:find(Profile, "enterprise").
|
||||||
|
|
||||||
merge(BaseConf, Cfgs) ->
|
merge(BaseConf, Cfgs) ->
|
||||||
lists:foldl(
|
Confs = [BaseConf | lists:map(fun read_conf/1, Cfgs)],
|
||||||
fun(CfgFile, Acc) ->
|
infix(lists:filter(fun(I) -> iolist_size(I) > 0 end, Confs), [io_lib:nl(), io_lib:nl()]).
|
||||||
case filelib:is_regular(CfgFile) of
|
|
||||||
true ->
|
read_conf(CfgFile) ->
|
||||||
{ok, Bin1} = file:read_file(CfgFile),
|
case filelib:is_regular(CfgFile) of
|
||||||
case string:trim(Bin1, both) of
|
true ->
|
||||||
<<>> -> Acc;
|
{ok, Bin1} = file:read_file(CfgFile),
|
||||||
Bin2 -> [Acc, io_lib:nl(), io_lib:nl(), Bin2]
|
string:trim(Bin1, both);
|
||||||
end;
|
false ->
|
||||||
false ->
|
<<>>
|
||||||
Acc
|
end.
|
||||||
end
|
|
||||||
end,
|
infix([], _With) -> [];
|
||||||
BaseConf,
|
infix([One], _With) -> [One];
|
||||||
Cfgs
|
infix([H | T], With) -> [H, With, infix(T, With)].
|
||||||
).
|
|
||||||
|
|
||||||
get_all_cfgs(Root) ->
|
get_all_cfgs(Root) ->
|
||||||
Apps0 = filelib:wildcard("*", Root) -- ["emqx_machine", "emqx_conf"],
|
Apps0 = filelib:wildcard("*", Root) -- ["emqx_machine", "emqx_conf"],
|
||||||
|
|
|
@ -14,8 +14,10 @@ export PROFILE
|
||||||
|
|
||||||
case $PROFILE in
|
case $PROFILE in
|
||||||
"emqx-enterprise")
|
"emqx-enterprise")
|
||||||
DIR='emqx-ee'
|
#DIR='emqx-ee'
|
||||||
EDITION='enterprise'
|
#EDITION='enterprise'
|
||||||
|
echo "No relup for now"
|
||||||
|
exit 0
|
||||||
;;
|
;;
|
||||||
"emqx")
|
"emqx")
|
||||||
echo "No relup for opensource edition"
|
echo "No relup for opensource edition"
|
||||||
|
|
Loading…
Reference in New Issue