From 6c361526122726a68668c8a94e9f4bc61a921855 Mon Sep 17 00:00:00 2001 From: JimMoen Date: Tue, 23 May 2023 14:42:41 +0800 Subject: [PATCH] fix: reboot `emqx_license` app for join cluster --- apps/emqx/include/emqx_release.hrl | 2 +- apps/emqx_machine/src/emqx_machine.app.src | 2 +- apps/emqx_machine/src/emqx_machine_boot.erl | 52 ++++++++++----------- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/apps/emqx/include/emqx_release.hrl b/apps/emqx/include/emqx_release.hrl index 84f4468e4..2f5d1cb0c 100644 --- a/apps/emqx/include/emqx_release.hrl +++ b/apps/emqx/include/emqx_release.hrl @@ -35,7 +35,7 @@ -define(EMQX_RELEASE_CE, "5.0.21"). %% Enterprise edition --define(EMQX_RELEASE_EE, "5.0.2"). +-define(EMQX_RELEASE_EE, "5.0.2-patch-00"). %% the HTTP API version -define(EMQX_API_VERSION, "5.0"). diff --git a/apps/emqx_machine/src/emqx_machine.app.src b/apps/emqx_machine/src/emqx_machine.app.src index 0bee30e35..6bd36aab5 100644 --- a/apps/emqx_machine/src/emqx_machine.app.src +++ b/apps/emqx_machine/src/emqx_machine.app.src @@ -3,7 +3,7 @@ {id, "emqx_machine"}, {description, "The EMQX Machine"}, % strict semver, bump manually! - {vsn, "0.2.1"}, + {vsn, "0.2.2"}, {modules, []}, {registered, []}, {applications, [kernel, stdlib, emqx_ctl]}, diff --git a/apps/emqx_machine/src/emqx_machine_boot.erl b/apps/emqx_machine/src/emqx_machine_boot.erl index 82b3d602f..324505a3b 100644 --- a/apps/emqx_machine/src/emqx_machine_boot.erl +++ b/apps/emqx_machine/src/emqx_machine_boot.erl @@ -126,32 +126,32 @@ reboot_apps() -> BaseRebootApps ++ ConfigApps. basic_reboot_apps() -> - CE = - ?BASIC_REBOOT_APPS ++ - [ - emqx_prometheus, - emqx_modules, - emqx_dashboard, - emqx_connector, - emqx_gateway, - emqx_statsd, - emqx_resource, - emqx_rule_engine, - emqx_bridge, - emqx_plugin_libs, - emqx_management, - emqx_retainer, - emqx_exhook, - emqx_authn, - emqx_authz, - emqx_slow_subs, - emqx_auto_subscribe, - emqx_plugins - ], - case emqx_release:edition() of - ce -> CE; - ee -> CE ++ [] - end. + ?BASIC_REBOOT_APPS ++ + [ + emqx_prometheus, + emqx_modules, + emqx_dashboard, + emqx_connector, + emqx_gateway, + emqx_statsd, + emqx_resource, + emqx_rule_engine, + emqx_bridge, + emqx_plugin_libs, + emqx_management, + emqx_retainer, + emqx_exhook, + emqx_authn, + emqx_authz, + emqx_slow_subs, + emqx_auto_subscribe, + emqx_plugins + ] ++ basic_reboot_apps_enterprise(emqx_release:edition()). + +basic_reboot_apps_enterprise(ee) -> + [emqx_license]; +basic_reboot_apps_enterprise(_) -> + []. sorted_reboot_apps() -> Apps = [{App, app_deps(App)} || App <- reboot_apps()],