We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb459f commit fc19b9aCopy full SHA for fc19b9a
entrypoints/run-node.sh
@@ -28,7 +28,9 @@ else
28
VALIDATOR_STATE_DIR="/root/.fetchd/data"
29
30
# Copy readonly values from configmap dir to /root/.gaiad/config
31
- mkdir -p /root/.fetchd/config
+ if [ ! -d /root/.fetchd/config ]; then
32
+ mkdir -p /root/.fetchd/config
33
+ fi
34
cp /root/wasm-temp-config/* /root/.fetchd/config/
35
cp /root/secret-temp-config/* /root/.fetchd/config/
36
chmod 644 /root/.fetchd/config/*
@@ -44,6 +46,10 @@ else
44
46
then
45
47
echo "Overwritting genesis.json from ${OVERWRITE_GENESIS_URL}"
48
curl -o ~/.fetchd/config/genesis.json "${OVERWRITE_GENESIS_URL}"
49
+ if [ $? -ne 0 ]; then
50
+ echo "failed to download genesis.json"
51
+ exit 1
52
53
fi
54
55
##
0 commit comments