Merge pull request #7733 from thalesmg/fix-node-dump-root
fix(node_dump): define `RUNNER_ROOT_DIR` before sourcing vars
This commit is contained in:
commit
12d7975c36
|
@ -2,13 +2,13 @@
|
|||
set -eu
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
ROOT_DIR="$(cd "$(dirname "$(readlink "$0" || echo "$0")")"/..; pwd -P)"
|
||||
echo "Running node dump in ${ROOT_DIR}"
|
||||
RUNNER_ROOT_DIR="$(cd "$(dirname "$(readlink "$0" || echo "$0")")"/..; pwd -P)"
|
||||
echo "Running node dump in ${RUNNER_ROOT_DIR}"
|
||||
|
||||
# shellcheck disable=SC1090,SC1091
|
||||
. "$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"
|
||||
CONF_DUMP="$RUNNER_LOG_DIR/conf.dump"
|
||||
|
|
Loading…
Reference in New Issue