[#13] 修复nodeb UID/GID问题,从.env中加载覆盖配置

This commit is contained in:
yuyr 2025-10-16 17:05:17 +08:00
parent 68b8461ea0
commit 33a4c6564e

View File

@ -8,6 +8,16 @@ REPO_ROOT="$(cd "$TEST_ROOT/../../.." && pwd)"
API_BASE="http://localhost:32300/api/v1/master" API_BASE="http://localhost:32300/api/v1/master"
if [[ -f "$TEST_ROOT/.env" ]]; then
set -a
# shellcheck disable=SC1090
source "$TEST_ROOT/.env"
set +a
else
source "$REPO_ROOT/scripts/common/build_user.sh"
load_build_user
fi
ID_B="$(cat "$TMP_DIR/node_id_b")" ID_B="$(cat "$TMP_DIR/node_id_b")"
IP0_B="$(cat "$TMP_DIR/initial_ip_b")" IP0_B="$(cat "$TMP_DIR/initial_ip_b")"