chore: fix the app vsn and appup.src

This commit is contained in:
JianBo He 2022-01-13 17:30:20 +08:00
parent 0157ef830e
commit b3862fb283
9 changed files with 38 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_management, {application, emqx_management,
[{description, "EMQ X Management API and CLI"}, [{description, "EMQ X Management API and CLI"},
{vsn, "4.4.0"}, % strict semver, bump manually! {vsn, "4.4.1"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, [emqx_management_sup]}, {registered, [emqx_management_sup]},
{applications, [kernel,stdlib,minirest]}, {applications, [kernel,stdlib,minirest]},

View File

@ -1,5 +1,11 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{VSN, {VSN,
[{<<".*">>,[]}], [{<<".*">>,
[{<<".*">>,[]}] [{apply,{minirest,stop_http,['http:management']}},
{apply,{minirest,stop_http,['https:management']}},
{restart_application, emqx_management}]}],
[{<<".*">>,
[{apply,{minirest,stop_http,['http:management']}},
{apply,{minirest,stop_http,['https:management']}},
{restart_application, emqx_management}]}]
}. }.

View File

@ -1,6 +1,6 @@
{application, emqx_retainer, {application, emqx_retainer,
[{description, "EMQ X Retainer"}, [{description, "EMQ X Retainer"},
{vsn, "4.4.0"}, % strict semver, bump manually! {vsn, "4.4.1"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, [emqx_retainer_sup]}, {registered, [emqx_retainer_sup]},
{applications, [kernel,stdlib]}, {applications, [kernel,stdlib]},

View File

@ -1,5 +1,7 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{VSN, {VSN,
[{<<".*">>,[]}], [{"4.4.0",[{load_module,emqx_retainer_cli,brutal_purge,soft_purge,[]}]},
[{<<".*">>,[]}] {<<".*">>,[]}],
[{"4.4.0",[{load_module,emqx_retainer_cli,brutal_purge,soft_purge,[]}]},
{<<".*">>,[]}]
}. }.

View File

@ -1,6 +1,6 @@
{application, emqx_rule_engine, {application, emqx_rule_engine,
[{description, "EMQ X Rule Engine"}, [{description, "EMQ X Rule Engine"},
{vsn, "4.4.0"}, % strict semver, bump manually! {vsn, "4.4.1"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, [emqx_rule_engine_sup, emqx_rule_registry]}, {registered, [emqx_rule_engine_sup, emqx_rule_registry]},
{applications, [kernel,stdlib,rulesql,getopt]}, {applications, [kernel,stdlib,rulesql,getopt]},

View File

@ -1,5 +1,15 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{VSN, {VSN,
[{<<".*">>,[]}], [{"4.4.0",
[{<<".*">>,[]}] [ {update, emqx_rule_metrics, {advanced, ["4.4.0"]}}
, {load_module,emqx_rule_engine,brutal_purge,soft_purge,[]}
, {load_module,emqx_rule_runtime,brutal_purge,soft_purge,[]}
]},
{<<".*">>,[]}],
[{"4.4.0",
[ {update, emqx_rule_metrics, {advanced, ["4.4.0"]}}
, {load_module,emqx_rule_engine,brutal_purge,soft_purge,[]}
, {load_module,emqx_rule_runtime,brutal_purge,soft_purge,[]}
]},
{<<".*">>,[]}]
}. }.

View File

@ -328,9 +328,9 @@ handle_info(_Info, State) ->
code_change({down, _Vsn}, State = #state{metric_ids = MIDs}, [Vsn]) -> code_change({down, _Vsn}, State = #state{metric_ids = MIDs}, [Vsn]) ->
case string:tokens(Vsn, ".") of case string:tokens(Vsn, ".") of
["4", "3", SVal] -> ["4", "4", SVal] ->
{Val, []} = string:to_integer(SVal), {Val, []} = string:to_integer(SVal),
case Val =< 7 of case Val == 0 of
true -> true ->
[begin [begin
Passed = get_rules_passed(Id), Passed = get_rules_passed(Id),
@ -356,9 +356,9 @@ code_change({down, _Vsn}, State = #state{metric_ids = MIDs}, [Vsn]) ->
code_change(_Vsn, State = #state{metric_ids = MIDs}, [Vsn]) -> code_change(_Vsn, State = #state{metric_ids = MIDs}, [Vsn]) ->
case string:tokens(Vsn, ".") of case string:tokens(Vsn, ".") of
["4", "3", SVal] -> ["4", "4", SVal] ->
{Val, []} = string:to_integer(SVal), {Val, []} = string:to_integer(SVal),
case Val =< 7 of case Val == 0 of
true -> true ->
[begin [begin
Matched = get_rules_matched(Id), Matched = get_rules_matched(Id),

View File

@ -1,7 +1,7 @@
{application, emqx, {application, emqx,
[{id, "emqx"}, [{id, "emqx"},
{description, "EMQ X"}, {description, "EMQ X"},
{vsn, "4.4.0"}, % strict semver, bump manually! {vsn, "4.4.1"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{applications, [kernel,stdlib,gproc,gen_rpc,esockd,cowboy,sasl,os_mon]}, {applications, [kernel,stdlib,gproc,gen_rpc,esockd,cowboy,sasl,os_mon]},

View File

@ -1,5 +1,9 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{VSN, {VSN,
[{<<".*">>,[]}], [{"4.4.0",
[{<<".*">>,[]}] [{load_module,emqx_channel,brutal_purge,soft_purge,[]}]},
{<<".*">>,[]}],
[{"4.4.0",
[{load_module,emqx_channel,brutal_purge,soft_purge,[]}]},
{<<".*">>,[]}]
}. }.