Revert formats
This commit is contained in:
parent
d703835d29
commit
cddba4c19e
@ -21,7 +21,6 @@ if [ -n "$mnemonic" ]; then
|
|||||||
echo "ALLORA_OFFCHAIN_NODE_CONFIG_JSON='$stringified_json'" > ./worker-data/env_file
|
echo "ALLORA_OFFCHAIN_NODE_CONFIG_JSON='$stringified_json'" > ./worker-data/env_file
|
||||||
echo "NAME=$nodeName" >> ./worker-data/env_file
|
echo "NAME=$nodeName" >> ./worker-data/env_file
|
||||||
echo "ENV_LOADED=true" >> ./worker-data/env_file
|
echo "ENV_LOADED=true" >> ./worker-data/env_file
|
||||||
|
|
||||||
echo "wallet mnemonic already provided by you, loading config.json . Please proceed to run docker compose"
|
echo "wallet mnemonic already provided by you, loading config.json . Please proceed to run docker compose"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -34,10 +33,8 @@ ENV_LOADED=$(grep '^ENV_LOADED=' ./worker-data/env_file | cut -d '=' -f 2)
|
|||||||
if [ "$ENV_LOADED" = "false" ]; then
|
if [ "$ENV_LOADED" = "false" ]; then
|
||||||
json_content=$(cat ./config.json)
|
json_content=$(cat ./config.json)
|
||||||
stringified_json=$(echo "$json_content" | jq -c .)
|
stringified_json=$(echo "$json_content" | jq -c .)
|
||||||
|
|
||||||
docker run -it --entrypoint=bash -v $(pwd)/worker-data:/data -v $(pwd)/scripts:/scripts -e NAME="${nodeName}" -e ALLORA_OFFCHAIN_NODE_CONFIG_JSON="${stringified_json}" alloranetwork/allora-chain:latest -c "bash /scripts/init.sh"
|
docker run -it --entrypoint=bash -v $(pwd)/worker-data:/data -v $(pwd)/scripts:/scripts -e NAME="${nodeName}" -e ALLORA_OFFCHAIN_NODE_CONFIG_JSON="${stringified_json}" alloranetwork/allora-chain:latest -c "bash /scripts/init.sh"
|
||||||
echo "config.json saved to ./worker-data/env_file"
|
echo "config.json saved to ./worker-data/env_file"
|
||||||
else
|
else
|
||||||
echo "config.json is already loaded, skipping the operation. You can set ENV_LOADED variable to false in ./worker-data/env_file to reload the config.json"
|
echo "config.json is already loaded, skipping the operation. You can set ENV_LOADED variable to false in ./worker-data/env_file to reload the config.json"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user