fix(boot): Add data dir

This is a copy from emqx-rel project
This commit is contained in:
Zaiming Shi 2020-11-21 20:22:25 +01:00
parent 380c874fb5
commit 0a99cd9b3a
4 changed files with 31 additions and 1 deletions

1
.gitignore vendored
View File

@ -20,7 +20,6 @@ eunit.coverdata
test/ct.cover.spec
ct.coverdata
.idea/
data/
_build
.rebar3
rebar3.crashdump

22
data/emqx_vars Normal file
View File

@ -0,0 +1,22 @@
######################################################################
## NOTE: Do NOT replace this file during release upgrade.
## Update the vars to the end of this file instead.
######################################################################
## constants from relx template
REL_VSN="{{ rel_vsn }}"
ERTS_VSN="{{ erts_vsn }}"
ERL_OPTS="{{ erl_opts }}"
RUNNER_ROOT_DIR="{{ runner_root_dir }}"
RUNNER_BIN_DIR="{{ runner_bin_dir }}"
RUNNER_LOG_DIR="{{ runner_log_dir }}"
RUNNER_LIB_DIR="{{ runner_lib_dir }}"
RUNNER_ETC_DIR="{{ runner_etc_dir }}"
RUNNER_DATA_DIR="{{ runner_data_dir }}"
RUNNER_USER="{{ runner_user }}"
EMQX_DISCR="{{ emqx_description }}"
## computed vars
REL_NAME="emqx"
ERTS_PATH=$RUNNER_ROOT_DIR/erts-$ERTS_VSN/bin
## updated vars here

2
data/loaded_modules.tmpl Normal file
View File

@ -0,0 +1,2 @@
{emqx_mod_acl_internal, true}.
{emqx_mod_presence, true}.

7
data/loaded_plugins.tmpl Normal file
View File

@ -0,0 +1,7 @@
{emqx_management, true}.
{emqx_recon, true}.
{emqx_retainer, true}.
{emqx_dashboard, true}.
{emqx_telemetry, true}.
{emqx_rule_engine, {{enable_plugin_emqx_rule_engine}}}.
{emqx_bridge_mqtt, {{enable_plugin_emqx_bridge_mqtt}}}.