Merge pull request #8026 from thalesmg/fix-node-dump-43
fix(node_dump): define `RUNNER_ROOT_DIR` before sourcing vars
This commit is contained in:
commit
391c015154
|
@ -38,6 +38,7 @@ File format:
|
||||||
startup. [#7876]
|
startup. [#7876]
|
||||||
[ekka-158](https://github.com/emqx/ekka/pull/158)
|
[ekka-158](https://github.com/emqx/ekka/pull/158)
|
||||||
* Add regular expression check ^[0-9A-Za-z_\-]+$ for node name [#7979]
|
* Add regular expression check ^[0-9A-Za-z_\-]+$ for node name [#7979]
|
||||||
|
* Fix `node_dump` variable sourcing. [#8026]
|
||||||
|
|
||||||
## v4.3.14
|
## v4.3.14
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
ROOT_DIR="$(cd "$(dirname "$(readlink "$0" || echo "$0")")"/..; pwd -P)"
|
RUNNER_ROOT_DIR="$(cd "$(dirname "$(readlink "$0" || echo "$0")")"/..; pwd -P)"
|
||||||
echo "Running node dump in ${ROOT_DIR}"
|
echo "Running node dump in ${RUNNER_ROOT_DIR}"
|
||||||
|
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "$ROOT_DIR"/releases/emqx_vars
|
. "$RUNNER_ROOT_DIR"/releases/emqx_vars
|
||||||
|
|
||||||
cd "${ROOT_DIR}"
|
cd "${RUNNER_ROOT_DIR}"
|
||||||
|
|
||||||
DUMP="$RUNNER_LOG_DIR/node_dump_$(date +"%Y%m%d_%H%M%S").tar.gz"
|
DUMP="$RUNNER_LOG_DIR/node_dump_$(date +"%Y%m%d_%H%M%S").tar.gz"
|
||||||
CONF_DUMP="$RUNNER_LOG_DIR/conf.dump"
|
CONF_DUMP="$RUNNER_LOG_DIR/conf.dump"
|
||||||
|
|
Loading…
Reference in New Issue