From 2ea5385aa0e78fb21a74ae1937bf1be965437015 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 7 Oct 2020 16:02:43 +0300 Subject: [PATCH] Fix invalid file permissions causilg make eth2_network_sim to fail --- tests/simulation/run_node.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/simulation/run_node.sh b/tests/simulation/run_node.sh index 7003e2fec..8ca5f425e 100755 --- a/tests/simulation/run_node.sh +++ b/tests/simulation/run_node.sh @@ -50,11 +50,13 @@ if [ "${NAT:-}" == "1" ]; then NAT_ARG="--nat:any" fi +mkdir -m 0700 -p "$NODE_DATA_DIR" + rm -rf "$NODE_VALIDATORS_DIR" -mkdir -p "$NODE_VALIDATORS_DIR" +mkdir -m 0700 "$NODE_VALIDATORS_DIR" rm -rf "$NODE_SECRETS_DIR" -mkdir -p "$NODE_SECRETS_DIR" +mkdir -m 0700 "$NODE_SECRETS_DIR" VALIDATORS_PER_NODE=$(( NUM_VALIDATORS / (TOTAL_NODES - 1) )) if [ "${USE_BN_VC_VALIDATOR_SPLIT:-}" == "yes" ]; then @@ -74,7 +76,7 @@ if [[ $NODE_ID -lt $BOOTSTRAP_NODE ]]; then fi rm -rf "$NODE_DATA_DIR/dump" -mkdir -p "$NODE_DATA_DIR/dump" +mkdir -m 0700 "$NODE_DATA_DIR/dump" SNAPSHOT_ARG="" if [ -f "${SNAPSHOT_FILE}" ]; then