Skip to content

Commit

Permalink
fix: stop on genesis overwrite failure (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
daeMOn63 authored Mar 23, 2021
1 parent 2fb459f commit fc19b9a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion entrypoints/run-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ else
VALIDATOR_STATE_DIR="/root/.fetchd/data"

# Copy readonly values from configmap dir to /root/.gaiad/config
mkdir -p /root/.fetchd/config
if [ ! -d /root/.fetchd/config ]; then
mkdir -p /root/.fetchd/config
fi
cp /root/wasm-temp-config/* /root/.fetchd/config/
cp /root/secret-temp-config/* /root/.fetchd/config/
chmod 644 /root/.fetchd/config/*
Expand All @@ -44,6 +46,10 @@ else
then
echo "Overwritting genesis.json from ${OVERWRITE_GENESIS_URL}"
curl -o ~/.fetchd/config/genesis.json "${OVERWRITE_GENESIS_URL}"
if [ $? -ne 0 ]; then
echo "failed to download genesis.json"
exit 1
fi
fi

##
Expand Down

0 comments on commit fc19b9a

Please sign in to comment.